[coldfire-gnu-discuss] Debugging/Running program in internal Flash.

Daniel Jacobowitz dan at codesourcery.com
Fri Feb 16 16:10:08 UTC 2007


On Fri, Feb 16, 2007 at 11:02:21AM -0500, Claude Sylvain wrote:
> > *) Force a write to RAM from gdb.  this will cause the sprite to flush
> > the Icache.
> >         p/x *(int *)__data_start  = 0x1234567
> >
> > then reset the pc to 0x400 as you have been doing, and try again.
> >
> 
> It is really strange, the symbol "__data_start" seems to not be
> the start of the internal SRAM !?
> Its value is 0xb5b88126 instead 0x20000000 (as defined in the linker 
> script "m52235evb-rom.ld").
> 
> GDB can not write at such an address.

There was a typo in Nathan's suggestion; could you try *(int
*)&__data_start instead?  __data_start is assigned an address at
the start of RAM, which is different from pointing to the start
of RAM; 0xb5b88126 is probably the first word in SRAM.


-- 
Daniel Jacobowitz
CodeSourcery



More information about the coldfire-gnu-discuss mailing list