how to debug a ROM resident application ?
Christof Frey
Christof.Frey at varian.com
Tue Apr 12 14:30:44 UTC 2011
Hi,
Using Windows host, Sourcery G++ Lite 2010.09-39 and TBLCF. Can happily debug RAM targets.
Now trying to debug a ROM resident application flashed on a BCC5235 eval board (it is working as printf() output on a serial line confirms)
I wonder about the correct initialization sequence for doing this
I am starting gdb with my (*.elf) executable as parameter and then issue the following initialization commands:
target remote | m68k-elf-sprite tblcf://:0/ m5235evb
load
then I get:
target remote | m68k-elf-sprite tblcf://:0/ m5235evb
m68k-elf-sprite: Target reset
0xffe00b76 in uart0_out_char (ch=83 'S') at io.c:23
23 while (!(MCF_UART_USR0 & MCF_UART_USR_TXRDY))
load
m68k-elf-sprite: Flash programming is unsupported in this release
Error erasing flash with vFlashErase packet
I had expected that the debugger loads the symbol table only and does not try to program the flash.
Is there a means to force to load symbol table only?
I have tried to use gdb's symbol-file command with *.elf file as argument instead of load w/o success (symbols are not found)
Thanks,
Christof
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20110412/82081c44/attachment.html>
More information about the coldfire-gnu-discuss
mailing list