Quote:
Is it possible that some registers(r0-r12??) change even if not modified by my code?
The same thing with the AT91SAM7SE512. Not used register (R4 in my case), suddenly changes to value 0xFFFFFFFC. I think, it connected with entering to interrupt handler. With the debugger, I see that before return from interrupt handler, this register normally restores from stack. Then my code (for(...) that not use R4) executes and when next interrupt happens, this register is changed.
One strange thing: If I set breakpoint on the first command of interrupt handler, trouble disappearing (someone knows, what SAM-ICE (J-Link) from Segger make with code to set breakpoint?). If breakpoint on the second command, register is already corrupted.
If I move code, effect disappearing too. (But I afraid, in this case not fixes, just hiding)
What Is It ?! !HELP PLEASE!