[coldfire-gnu-discuss] Debugging from flash

Daniel Jacobowitz dan at codesourcery.com
Fri Sep 5 21:33:26 UTC 2008


On Fri, Sep 05, 2008 at 04:20:08PM -0400, Corrin Meyer wrote:
> I am using the P&E Micro flash utility (CPROGCFZ) to flash the ColdFire
> on the board I am working on.  I would like to be able to debug the
> running program using GDB.  The problem is that the error I am getting
> is right at boot and since the USB device can't be claimed by both the
> P&E Micro utility and the m68k-elf-sprite at the same time I have to
> first flash it and then connect GDB to it but by that time it has
> already run into the error.
> 
>  
> 
> I need to be able to tell the program to restart.  Normally I would just
> do a 'load' command within GDB but that will only work when running from
> RAM.  Is there anyway to restart a program that is already running in
> flash?  I can't do a reset as then breakpoint set by GDB is cleared, it
> needs to be a software reset issued by GDB.

When you start the sprite, unless you tell it not to, it resets the
board.  So your program should be back at the reset vector when you
connect from GDB.  Is that not happening?

["load" works fine and programs flash if you have a non-Lite SG++, by
the way :-)]

-- 
Daniel Jacobowitz
CodeSourcery



More information about the coldfire-gnu-discuss mailing list