This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Question about Hello World eCos example


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]