I have a serious problem with my deployed msp430F2618 chips. They work great in my prototypes and early production units, then when I ship them out to customers the flash on the chip is getting rewritten. It is obvious that the code is still working to some extent, but it has hung up at some point because the flash has been overwritten somehow. The error is very difficult to reproduce.
So my question: what kind of precautions are recommended in a deployed unit to make sure the MSP430 chip is safe in the unit?