I am trying to wake up my s32k116 MCU from VLPS mode using LPTMR0.
- LPTMR interrupt is enabled with priority as 0. The interrupts are fully functional in VLPR mode.
- LPTMR src clock is set to SIRC.
- state transition is as follows:- RUN->VLPR->VLPS
But the microcontroller is not able to wake up from VLPS mode.
Can you test it with SIRCSTEN = 1?
Thank you,
BR, Daniel
I am successfully wake up my MCU from VLPS mode using this solution. But flexcan is not working after waking up from VLPS mode.
Before the MCU entered VLPS, the clock sources (other than SIRC) as well as the FlexCAN module were disabled. Once the MCU is out of VLPS, the application must reeinitialize everything again.
Regards,
Daniel
Hi @ED86,
Can you check if SCG_SIRCCSR[SIRCEN = SIRCLPEN = SIRCSTEN = 1] before the MCU enters VLPS?
Thank you,
BR, Daniel
Following is the bit sequence for SCG_SIRCCSR register.
0011000000000000000000000101
As you can see SCG_SIRCCSR[SIRCEN] = 1, SCG_SIRCCSR[SIRCLPEN] = 1, but SCG_SIRCCSR[SIRCSTEN] = 0