[coldfire-gnu-discuss] Debugging from flash

Daniel Jacobowitz dan at codesourcery.com
Mon Sep 8 13:42:23 UTC 2008


On Mon, Sep 08, 2008 at 09:21:09AM -0400, Corrin Meyer wrote:
> (gdb) target remote | m68k-elf-sprite pe: m52235evb

Just checking, is your board actually an M52235EVB or is it something
similar but slightly different?

> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x00000e12 in __cs3_isr_illegal_instruction ()
> (gdb)

At this point, I'd suggest you check the exception frame on the stack
to see what instruction was illegal.

> I would expect that after issuing the continue command that the program
> should execute just as if the board had been booted.  Am I missing
> something?

Almost the same.  The only difference is that the initialization
sequence in the board file is executed first; this is to support
programs run from RAM, which may require the memory controller
to be initialized first.  But in general the initialization sequence
does not cause a problem if executed twice.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the coldfire-gnu-discuss mailing list