Clean up after LLWU wakeup

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Clean up after LLWU wakeup

869件の閲覧回数
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 返信

759件の閲覧回数
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 件の賞賛
返信