My main.c code is below.
If the debug probe is resetting the target after loading and letting it run, then when I later start the debugger, the target WAS in LPM and the first clause of the if is executed. My question is just to confirm that is what is happening.
If that is so, is there a way to start the debugger so that the target is in POR reset, and I can step through the second clause of the if? I suppose I can just make the debugger jump to the else clause.
Context: Using CCS Cloud, MSP-EXP430FR2433.
if (PPMIFG.PMMLPM5IFG is set ) {
// wake from sleep // off chip resources still configured } else { // must be POR // configure off chip resources } LPM4;