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]

Re: How to RUN a program?


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?

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


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