[coldfire-gnu-discuss] MCF52233 access error exception.

Nathan Sidwell nathan at codesourcery.com
Thu Jan 18 16:26:27 UTC 2007


Mats Blide wrote:

> 0x00000426 <start+30>:  moveal #536903679,%sp


> 66        move.l  #__stack, sp
> (gdb)
> Cannot access memory at address 0x20007fff

There's at least one thing wrong here.  You're initializing the stack pointer to 
0x20007fff.  The stack should be four byte aligned.

It looks like the board's memory system is not initialized correctly.  This 
message is happening because gdb is attempting to unwind the stack.  You can 
check this yourself by trying things like
	(gdb) p/x *(int *)0x20007ffc = 0x12345678
	(gdb) p/x *(int *)0x20007ffc

You might also want to write a small piece of assembly code and insert it in 
__start to check that that memory region is functional.

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