Other Parts Discussed in Thread: MSP-FET
This happens intermittently - some devices do it consistently, others never do it.
Most of the time, INFO B area (0x1080) is erased (0xFF's). See image #1 below. The memory corruption always happens during power cycling.
Today, one of the devices stopped working altogether. I examined its memory and was shocked to find that some of the code flash memory was corrupted - looks like it was written with mostly zeros. I was repeatedly replacing the battery when it happened. In this case, the bits were written (0's).
The device is battery powered. I do have flash erase and write routines, but they are only called during uart activity that requires checksums etc, and none of that is happening here. I'm guessing that the stack pointer is going nuts on powerup (or down) and executing some of that flash code, but that's just a guess. The code was originally written to the processor with an MSP-FET debugger.
Thoughts?