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>
- Subject: Re: [ECOS] How to RUN a program?
- From: Gary Thomas <gthomas at cambridge dot redhat dot com>
- Date: Tue, 03 Jul 2001 05:59:45 -0600 (MDT)
- Cc: ecos-discuss at sources dot redhat dot com,Jonathan Larmour <jlarmour at redhat dot com>
- Organization: Red Hat, Inc.
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.
> -------------------------------------------------------