In case of LLWU wakeup ( K82 ) and usage external pins for as wake up source you recommend to execute this code
at early boot phase.
/* Wakeup from VLLS. */
uint32_t resetStatus = RCM_GetPreviousResetSources(RCM);
if (kRCM_SourceWakeup & resetStatus)
But what should be clean up sequence in case of other wakeup sources ?
Like RTC, USB, CMP and etc.