Clean up after LLWU wakeup

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Clean up after LLWU wakeup

837 次查看
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 项奖励
回复
1 回复

727 次查看
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 项奖励
回复