This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC935 Stack curiosity

Hello,

I have code running on a LPC935 that crashes in certain situations. To find the cause I also checked the space required for stack. To do this I read back the idata memory from 0FFh to start address of SP. idata is set to 0h at boot time, so the first (from top) byte that is not 0h is the end of the stack.

The interesting thing is I found stack bytes that are already used (not equal 0h) and suddenly are cleared!

Is this an indicator of some wild running code that overwrites my stack, or is it a behavior I just don't understand.

Any input would greatly appreciated.

Gustl

0