[coldfire-gnu-discuss] Debugging/Running program in internal Flash.
Nathan Sidwell
nathan at codesourcery.com
Thu Feb 15 07:28:37 UTC 2007
Claude Sylvain wrote:
> ..
> m68k-elf-sprite:Opening P&E USBMultilink port 1 (USB1 : USB-ML-CF Rev C
> (PE60123
> 45))
> m68k-elf-sprite:Target reset
> 0x00000000 in __interrupt_vector ()
> Breakpoint 1 at 0x512: file ./src/main.c, line 172.
> Note: automatically using hardware breakpoints for read-only addresses.
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x00000004 in __interrupt_vector ()
> (gdb)
Because you've not loaded the program, GDB has not initialized $pc. you need to
set it manually
p/x $pc = __reset
However ...
> Using the disassemble command of GDB, I take a look at the reset entry
> point (defined as __reset) and found something that looks like an
> endless loop. See the GDB output below:
This is an error in the rom linker script. You can work around it by jumping
directly to __start
p/x $pc = __start
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery
nathan at codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk
More information about the coldfire-gnu-discuss
mailing list