Wake up from VLPS mode using LPTMR

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

Wake up from VLPS mode using LPTMR

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

772 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Can you test it with SIRCSTEN = 1?

danielmartynek_0-1704268543184.png

 

Thank you,

BR, Daniel

0 项奖励
回复

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

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

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

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