 
					
				
		
Hello !
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.
int main(void)
{
 /* Wakeup from VLLS. */
 SMC_SetPowerModeProtection(SMC, kSMC_AllowPowerModeAll);
 uint32_t resetStatus = RCM_GetPreviousResetSources(RCM);
 if (kRCM_SourceWakeup & resetStatus)
 {
  PMC_ClearPeriphIOIsolationFlag(PMC);
  NVIC_ClearPendingIRQ(LLWU_IRQn);
 }
....
But what should be clean up sequence in case of other wakeup sources ?
Like RTC, USB, CMP and etc.
Regards,
Eugene
Hi
Please check AN4503 about module wake up events of LLWU (chapter 14.1.3).
Wish it helps.
Have a great day,
Mike
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
