This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

RE: ecos application problem


> From: albert prasetyo
> 
> I am a newbie in redboot and ecos. Currently I am developing
> redboot for AT91RM9200 board (ARM9). I am able to develop 
> redboot (RAM) version for this board but unable to run the 
> application (app.srec).
> 
> Source code of app.srec:
> #include <stdio.h>
> 
> int main(void)
> 
> {
> 
> printf("1\n");
> 
> return 0;
> 
> }
> 
> 
> This is the message generated by redboot:
> 
> RedBoot> load -m y
> CCEntry point: 0x21000040, address range:
> 0x21000000-0x210086c4 xyzModem - CRC mode, 
> 2(SOH)/102(STX)/0(CAN) packets, 4 retries
> RedBoot> go
> $O310A#24
> 
> It somehow managed to print '1' but in ASCII mode. I don't
> know where my configuration goes wrong. Any help is much appreciated.

That's a GDB packet, containing your output in hex (310A is "1\n"). This is
what you get when your program is sharing an interface with the GDB stubs.
If you communicated with the board using GDB, and loaded and ran the app
that way, GDB would display your output correctly in its console pane. Or if
you sent your output to a different device, it would look normal.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com 


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


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