From mboxrd@z Thu Jan 1 00:00:00 1970 From: "David Airlie" To: "Andre Sebastien" Cc: ecos-discuss@sources.redhat.com Subject: Re: [ECOS] Question about Hello World eCos example Date: Wed, 25 Jul 2001 09:11:00 -0000 Message-id: References: <3B5ED469.4A25761B@sxb.bsf.alcatel.fr> X-SW-Source: 2001-07/msg00787.html 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