This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to RUN a program?
- To: "Nagendra EM" <nagendra dot em at eudoramail dot com>, "Gary Thomas" <gthomas at cambridge dot redhat dot com>
- Subject: Re: [ECOS] How to RUN a program?
- From: "Nagendra EM" <nagendra dot em at eudoramail dot com>
- Date: Tue, 03 Jul 2001 18:18:53 +0530
- Cc: "Jonathan Larmour" <jlarmour at redhat dot com>, ecos-discuss at sources dot redhat dot com
- Organization: QUALCOMM Eudora Web-Mail (http://www.eudoramail.com:80)
- Reply-To: nagendra dot em at eudoramail dot com
Hi,
These are the steps that have followed.
1. Built redboot.bin using the configuration tool.
2. Burnt the bootflash on SA1110 using the utility provided by the
manufacturer.
3. Built the example program "hello" found in the examples directory
using arm-elf-gcc and followed the steps given in the "Getting
started" manual for ARM. (i.e., setting the PKG_INSTALL_DIR and
XCC).
4. Started the ARM-GDB by invoking arm-elf-gdb.exe file.
Now, on the gdb prompt,
----------------------------------------------------------
gdb) target remote COM2
Remote debugging using COM2
0x0 in ?? ()
(gdb) load hello.exe
Loading section .rom_vectors, size 0x40 lma 0x50000000
Loading section .text, size 0x8ee0 lma 0x50
---------------------------------------------------------
It remains like this for a long time (more than 2 mins)
after that, it shows
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
then, after sometime (almost after 2mins), the LCD display of my board comes up, I can't see anything on the display though.
Can you please suggest/comment...
waiting for your reply...
regards,
- Nagendra.
--
On Tue, 03 Jul 2001 06:15:15 Gary Thomas wrote:
>
>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
>
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com