Hi
I am having some trouble getting the KL25z to wake up fully after LLS. By that i mean that I am unable to utilize the I/O pins, i.e. the PORT module, after wakeup.
I gather that i need to reactivate something, but I have been unable to find the documentation regarding this.
Below is the LLWU IRQ Handler
void LLWU_IRQHandler()
{
if (LLWU->F2 & LLWU_F2_WUF14_MASK)
{
// Clear Wake-up flag for pin
LLWU->F2 |= LLWU_F2_WUF14_MASK;
// Disable sleep on exit
SCB->SCR &= ~SCB_SCR_SLEEPONEXIT_Msk;
}
else
if (LLWU->F3 & LLWU_F3_MWUF0_MASK)
{
// write 1 to TCF to clear the LPT timer compare flag
LPTMR0->CSR |= LPTMR_CSR_TCF_MASK;
PTB->PTOR |= MASK(0);
}
//PMC->REGSC &= ~PMC_REGSC_ACKISO_MASK;
}
I am using MCUXpresso with NXP SDK.
I'm kinda banging my head against the wall here.
Mathias
Solved! Go to Solution.
Hi Mathias,
Please refer the frdmkl25z_demo_apps_power_mode_switch SDK example:
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Mathias,
Please refer the frdmkl25z_demo_apps_power_mode_switch SDK example:
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi Robin.
I could have sworn that i already tried that. Nevertheless i worked!!!
Thanks alot
Mathias