[coldfire-gnu-discuss] m68k-elf-sprite cannot talk to Coldfire board
Kevin Bube
kevin.bube at mahr.de
Wed Apr 11 08:17:56 UTC 2007
"Andreas Engberg" <andrux76 at gmail.com> writes:
> I bet that SP (or maybe PC) gets set to an unwanted address causing a
> bus error. I had this happening to me with the m5475evb. Try editing
> your linker script and change the stack to something less than max.
Yes, I think you are correct about this. We investigated further and
found that SP gets set to 0x40102700 which does not exist. This occurs
randomly. We are in an endless loop which does nothing but increment a
counter. Sometimes we reach just one iteration, sometimes 10 or more.
After we jump to the adress, we end up in the exception handler but
never get out, because we hit this adress over and over again.
Maybe this is some sort of timing problem, as we can nearly go through
the whole application if we use single line stepping in the debugger.
I attached the initialisation file for the board. I tried reducing the
stack size as suggested, but this did not help either.
Regards,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.xml
Type: application/xml
Size: 1580 bytes
Desc: Init
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20070411/388a0740/attachment.xml>
More information about the coldfire-gnu-discuss
mailing list