Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
I've been navigating through the low power modes of the MSPM0G1106 mcu and ran into the following questions:
1. If I wanted to measure the current consumption of the MCU while RUN0/SLEEP0 mode is active, and the MCU remains asleep except when handling the SysTick interrupt every 1 ms, would the following test code be appropriate? (I'm using the MSPM0 SDK 2.1.0.03.)
int main(void)
{
// Do initializaion. (SysTick starts firing every 1ms.)
DL_SYSCTL_setPowerPolicyRUN0SLEEP0();
while (1)
{
// Put the MCU to SLEEP0 mode.
__WFI();
}
}
2. I also notice that when I add the __WFI() command inside the while loop above, the WWDT1, which I have enabled, never resets the MCU even though I do not service it regularly. (The reset works fine without the __WIF() command.)
According to the RUN bit in the WWDT1_WWDSTAT register, which is set to 1 (ON) while running the while(1) loop, the watchdog appears to be running. However, I don’t understand why the MCU doesn’t reset when the watchdog should have expired.
FYI. my WWDT1 uses LFCLK as its clock source.

Thank you,
Kyungjae Lee

