My application on MSP430F5310 showed weird behavior at the customer (stopped running after a few minutes). After quite some fiddling around, I suppose that the problem was due to insufficient stack size. The application makes heavy use of the stack, so the default setting might have been too small. Now the setting is at 1.5 kB stack, so far everything looks fine.
Does someone have a suggestion how to detect a stack overrun at runtime? Cyclically checking the stack pointer? Setting and checking a bit pattern just below the stack? Any other wonderful idea I did not come across?
Max