Clean up after LLWU wakeup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clean up after LLWU wakeup

842 Views
EugeneHiihtaja
Senior Contributor I

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

0 Kudos
Reply
1 Reply

732 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply