This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Question about Hello World eCos example
- To: "Andre Sebastien" <sebastien dot andre at sxb dot bsf dot alcatel dot fr>
- Subject: Re: [ECOS] Question about Hello World eCos example
- From: "David Airlie" <David dot Airlie at parthus dot com>
- Date: 25 Jul 2001 17:37:22 +0100
- Cc: ecos-discuss at sources dot redhat dot com
GDB debugging ... there is an option for mangling output in the .ecc, set
this to none..
Dave.
On Wed, 25 Jul 2001, Andre Sebastien wrote:
> Hi everybody
>
> I build Hello example et run it on an PID board !!!
>
> I use GCC 2.95.3 for arm-lib and eCos
>
> For load the ELF i use a LAUTERBACH and JTAG link !!!
> The software is T32
>
> I connect the serial port A on a PC with an HYPER-TERMINAL
> configured with 38400 bauds, 8bits,NO PARITY,NO CONTROL
>
> i execute the program i receive on the HYPER-TERMINAL this :
> $O48656C6C6F2C2065436F7320776F726C64212035200A#BB
>
> if we interprets it as HEX CODE it be :
> $0
> 0x48 0x65 0x6C 0x6C 0x6F 0x2C 0x20 = Hello, (+ a backspace)
>
> 0x65 0x43 0x6F 0x73 0x20 = eCos (+ a backspace)
> 0x77 0x6F 0x72 0x6C 0x64 0x21 0x20 = world! (+ a backspace)
>
> 0x35 0x20 0x0A = 5 \n
> #BB
>
> It s exactly that i try to print : printf("Hello, eCos world! %d \n",5);
>
> PS: what is $0 and #BB at the beginning and the end of output ?
>
> But never the program go out the function "printf", it seems to go in a
> infinite loop !!!!!
> What does it wrong ?
>
> best regards.
>
> Seb.
>
--
David Airlie, Software Engineer, Parthus Technologies plc.,
Mary Rosse Centre, National Tech Park, Limerick, Ireland.
t: +353-61-508116 / f: +353-61-508101 / David.Airlie@parthus.com