From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Thomas To: Nagendra EM Cc: Jonathan Larmour , ecos-discuss@sources.redhat.com Subject: Re: [ECOS] How to RUN a program? Date: Tue, 03 Jul 2001 05:15:00 -0000 Message-id: References: X-SW-Source: 2001-07/msg00061.html On 03-Jul-2001 Nagendra EM wrote: > Hi, > Thanks for the info. I have run the make file in the examples directory, after changing the > PKG_INSTALL_DIR and XCC as given in the manual. It has created an exe file also, but when I try > to load it, it loads, but stops after displaying the load. After that the gdb prompt does not > appear at all. Any comments? Any suggestions? This doesn't tell us much more than "it didn't work". Please send details like you did below - output from the GDB session, etc. Then maybe we can help. > > waiting for your reply... > > Thanks and Regards, > - Nagendra. > > > > -- > > On Tue, 03 Jul 2001 05:59:45 Gary Thomas wrote: >> >>On 03-Jul-2001 Nagendra EM wrote: >>> Hi, >>> I was trying to run one of the sample program on my SA1110 target, >>> after refering to the "Getting started" manual. >>> >>> Now, >>> I invoke my insight-gdb by running arm-gdb. Then open up a console window (since the insight >>> gui >>> window gave some problem connecting). Now, I type target remote COM2, I am able to connect. I >>> am >>> able to load the program also. But when I say continue, it just stays there for a long time >>> without any output. Where should I look for the output? Am I doing anything wrong? >>> >>> please suggest. >>> >>> The GDB console details pasted here...FYR >>> ------------------------------------------------------ >>> (gdb) target remote COM2 >>> Remote debugging using COM2 >>> 0x500074c8 in ?? () >>> >>> (gdb) load hello.o >> ^^^^^^^ >> >>You should be loading 'hello' (or 'hello.exe' on Windows). You can't >>run an object file, only one which has been fully linked with the >>eCos kernel. >> >>> Loading section .rodata, size 0x14 lma 0x0 >>> Loading section .text.main, size 0x28 lma 0x0 >>> Start address 0x0 , load size 60 >> >>These sizes and addresses tell it all - this is not a program which >>is ready to run (incomplete). >> >>> Transfer rate: 480 bits in <1 sec, 30 bytes/write. >>> >>> (gdb) continue >>> Continuing. >>> ------------------------------------------------------- >> > > > Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at > http://www.eudoramail.com