I got my firmware running on a MSP430FR596 and I want to add a condition on the FW (how long the FW has been running, or how many certain interrupts it has received) that if satisfied, the whole system should shut down without erasing the main memory.
The MCU is directly connected to the battery and disconneting it is not an option.
What is best to do here? Should I disable interrupt? Or there are better ways?