public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Victor Tarasov <victor.tarasov@idealx.com>
To: Gary Thomas <gthomas@cambridge.redhat.com>,
	eCos Discussion <ecos-discuss@sourceware.cygnus.com>
Subject: Re: [ECOS] Hello_eCos_World on iPAQ.
Date: Mon, 30 Apr 2001 08:39:00 -0000	[thread overview]
Message-ID: <3AED8693.C46FB6A2@idealx.com> (raw)
In-Reply-To: <XFMail.20010430060217.gthomas@cambridge.redhat.com>

Gary Thomas wrote:

> How does this relate to your problem?  Can you send your 'hello' application (source)?
>
> I tried these steps with our sample 'hello' program and there had no problems.
>

Here is my 'hello':
#include <stdio.h>

int main(void)
{
  int i=23;
  printf("Hello, eCos world! %i\n",++i);
  ++i;
  return 0;
}


It seems that target console output do not pass through 'mangler'.
With the diagnostics output directed to the channel 0, the "$O..#" message, can be seen on the host.


#include <stdio.h>
#include <cyg/hal/hal_arch.h>           /* CYGNUM_HAL_STACK_SIZE_TYPICAL */
#include <cyg/hal/hal_if.h>

const char test_string[] = "$O5468697320697320612074657374206d657373616765210d0a#12";

int main(void)
{
  int i=23, cur;

  cur = CYGACC_CALL_IF_SET_CONSOLE_COMM(CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT);
  CYGACC_CALL_IF_SET_CONSOLE_COMM(0);
  printf("%s\n",test_string);
  CYGACC_CALL_IF_SET_CONSOLE_COMM(cur);
  printf("%s\n",test_string);
  i++;
  return 0;
}
Target dies after the second printf.


>
> On 30-Apr-2001 Victor Tarasov wrote:
> >
> > Gary Thomas wrote:
> >
> >> On 26-Apr-2001 Victor Tarasov wrote:
> >> > Another question:
> >> > I try to debug Hello application through the unique serial port of iPAQ.
> >> >
> >> > Could you suggest any reason why writing to the /dev/ttydiag or to the /dev/haldiag kills the
> >> > target
> >> >>19        printf("Hello, eCos world %i!\n",i);
> >> >>(gdb) step
> >> >>Sending packet: $m20558,4#d1...Ack
> >> >>Packet received: 1730a0e3
> >> >>...........................
> >> >>Sending packet: $c#63...Ack
> >> > After that, I can get back RedBoot only reset of iPAQ.
> >>
> >> Tell us more about this, how you built it, which version of RedBoot you
> >> are using etc.  AFAIK we do this all the time.
> >
> > Host:
> > Linux 2.4.0 #5 Fri Mar 23 10:33:08 CET 2001 i686 unknown
> >
> > ARM development tools for Linux:
> > GCC core 2.95.2
> > GCC C++ 2.95.2
> > ecos-gcc-2952.pat
> > binutils-2.10.1
> > GDB 5.0
> >
> > I use anonymous CVS distribution version for 26.04.2001.
> > Install:
> >  % ecosconfig new ipaq
> >  % ecosconfig add fileio
> >  % ecosconfig tree
> >  % make
> >
> > RedBoot:
> >  % ecosconfig new ipaq redboot
> >  % ecosconfig import  redboot_Compaq.ecm
> >  % ecosconfig tree
> >  % make
> >
> > RedBoot version:
> > RedBoot(tm) bootstrap and debug environment - built 14:14:14, Apr 26 2001
> > Platform: Compaq iPAQ Pocket PC (StrongARM 1110)
> > Copyright (C) 2000, 2001, Red Hat, Inc.
> > RAM: 0x00000000-0x01fc0000, 0x0001f400-0x01f70000 available
> >
> > Hello-application compiled with:
> > arm-elf-gcc -mcpu=strongarm  -c -o hello.o -g -Wall -I/redboot/tmp_ecos/install/include
> > -ffunction-sections -fdata-sections hello.c
> > arm-elf-gcc -mcpu=strongarm  -nostartfiles -L/redboot/tmp_ecos/install/lib -Wl,--gc-sections -o
> > hello hello.o -Ttarget.ld -nostdlib
> >
> > Victor.
> >
> >

  reply	other threads:[~2001-04-30  8:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3AE5384E.779252B@idealx.com>
2001-04-24  5:54 ` Gary Thomas
2001-04-24  9:47   ` Jonathan Larmour
2001-04-26  7:30     ` Victor Tarasov
2001-04-26 17:28       ` Gary Thomas
2001-04-30  1:36         ` Victor Tarasov
2001-04-30  5:02           ` Gary Thomas
2001-04-30  8:39             ` Victor Tarasov [this message]
2001-04-23 10:04 Victor Tarasov
2001-04-23 10:21 ` Gary Thomas
2001-04-23 10:42 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3AED8693.C46FB6A2@idealx.com \
    --to=victor.tarasov@idealx.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=gthomas@cambridge.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).