Hello everybody,
i've trouble in writing a value 0x89 in a variable, after instruction this variable hold 0x11 instead of right value 0x89.
i have following code:
// some calculations
var = 0x89
NOP;
The stange thing is that if i set a break with condition "var = 0x11" after writing 0x89 in var, this break is triggered, the program halts. If i put a watchpoint at var address with condition write a value of 0x11, this wathpoint never triggers.
This situation occurs when i put the instructions above anywhere in my program.
What kind of problem is this? I never had this situation in last 3 years!
It's a debugger problem? Of the code that is execuded in flash? Could be a stack overflow?
I use cctudio 5.5 and xds100v2 debugger, all software is written in C.I have really no idea, please give hints!