Wake up from VLPS mode using LPTMR

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

Wake up from VLPS mode using LPTMR

848 Views
ED86
Contributor I

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.

0 Kudos
Reply
5 Replies

778 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Can you test it with SIRCSTEN = 1?

danielmartynek_0-1704268543184.png

 

Thank you,

BR, Daniel

0 Kudos
Reply

762 Views
ED86
Contributor I

I am successfully wake up my MCU from VLPS mode using this solution. But flexcan is not working after waking up from VLPS mode.

0 Kudos
Reply

756 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply

817 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @ED86,

Can you check if SCG_SIRCCSR[SIRCEN = SIRCLPEN = SIRCSTEN = 1] before the MCU enters VLPS?

 

Thank you,

BR, Daniel

0 Kudos
Reply

811 Views
ED86
Contributor I

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

0 Kudos
Reply