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: run hello throug gdb (on Assabet)


On Sun, 2001-10-28 at 08:36, Robert Lee wrote:
> Hi,
> 
> I found a similar problem in the archive (Wed, 04 Jul
> 2001, gdb debugging) but "continue" could not solve
> the problem.
> 
> I try to run hello on Assabet.  First, I load
> gdb_module.bin to Assabet.  Then, I compiled hello.
> 
> > file hello
> hello: ELF 32-bit LSB executable, Advanced RISC
> Machines ARM, version 1, statically linked, not
> stripped
> 
> I guess this is good.
> 
> Finally, I run gdb:
> -------------------------------------
> > arm-elf-gdb -nw hello
> (gdb's greeting)
> (gdb) set remotebaud 38400
> (gdb) target remote /dev/ttyS0
> Remote debugging using /dev/ttyS0
> hal_hardware_init ()
>     at
> /home/luyung/ecos/ecos/packages/hal/arm/sa11x0/var/current/src/sa11x0_misc.c:73
> 73          *SA11X0_ICMR = 0;
> (gdb) c
> Continuing.
> 
> Program received signal SIGTRAP, Trace/breakpoint
> trap.
> hal_hardware_init ()
>     at
> /home/luyung/ecos/ecos/packages/hal/arm/sa11x0/var/current/src/sa11x0_misc.c:73
> 73          *SA11X0_ICMR = 0;
> (gdb) r
> The program being debugged has been started already.
> Start it from the beginning? (y or n) n
> Program not restarted.
> -------------------------------------
> Should I see "Hello, eCos world!"?  Does anybody know
> what was wrong?  Thank you.

You need to download your application code to the target before you try
to run it.  Use the GDB 'load' command for this.

However, based on what I see above, it seems that you've not built your
application properly.  It should be based on a separate eCos kernel,
not one used to build RedBoot (or GDB stubs) on the board.




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