MSPM33-SDK: Reset due to watchdog

Part Number: MSPM33-SDK
Other Parts Discussed in Thread: MSPM33C321A

Hello,

For MSPM33C321A, does it exist a function in the SDK, which allows to know if the reset is due to "normal reset" (power supply ON) or due to watchdog reset ?

Thanks

  • Hello Sebastien, 

    Yes, DL_SYSCTL_getResetCause() is the function that returns the reset cause stored in the RSTCAUSE register. SDK examples tend to call it early in main() and compare the returned value against named reset-cause identifiers. 

    0x1: POR violation

    0x2: NRST-triggered POR

    0x3: Software-triggered POR

    0x4: WWDT violation

    Let me know if there are further questions/concerns on this. 

    Best Regards, 

    Benedict Jojo