Hi NXP:
I tried that the LPTMR could work in VLPR mode and wake up the MCU, but it did not work in VLPS mode.
I use the S32k146 and could wakeup the mcu from VLPS with GPIO interrupt, but mcu could not wakeup from VLPS by LPTMR or other FTM.
Could you please help me? Thanks!
Solved! Go to Solution.
Hello @KILLERzheng
PFA the fixed project. I simplified the code and tested on S32K146 EVB. The VLPS should be entered after pushing SW2 button, and after about 10 seconds the application exits the VLPS mode by an interrupt from LPTMR. Blue LED will be turned off during VLPS, then turned on after exit VLPS.
Best Regards,
Nam
I use LPTMR module can work in VLPS with LPO clock, but don't leave VLPS; I want to use test IO change in LVPS, if has IO change goto wakeup , but don't leave VLPS, how to from VLPS to RUN ?
Hello,
If i understand your issue correctly, then it looks like you're enabling sleep-on exit. Try to disable it and see whether if helps. Other than that, please create another thread.
Best Regards,
Nam
Hello
when IO port change , I need reset system , or else don't leave VLPS mode, I want to from VLPS to RUN mode; now don't goto run mode;
Hello
Can leave VLPS mode, but need reset system, I want to from VLPS to RUN mode; don't goto run mode;
Hello,
To be honest I don't really understand your request. I think you can contact to our local FAE and share your request by Chinese.
Thank you,
Nam
Hello @KILLERzheng
PFA the fixed project. I simplified the code and tested on S32K146 EVB. The VLPS should be entered after pushing SW2 button, and after about 10 seconds the application exits the VLPS mode by an interrupt from LPTMR. Blue LED will be turned off during VLPS, then turned on after exit VLPS.
Best Regards,
Nam
I tried the project you proved, and test it on my own board. I find that when mcu goes into VLPS, the current comsumption is 2.3mA 24V. I do think the power comsumption is too high to VLPS mode, because I test the VLPS in my own project that the current comsumption is 0.95mA 24V
Hello @KILLERzheng
With the shared app, I measured the power consumption with EVB board during VLPS. It's around 0.05 mA @12V. See attachment.
Can you verify with the EVB board?
Best Regards,
Nam
Hi,
the LPTMR module can work in VLPS but it needs the SIRC clock source to be running in VLPS.
Of course, the functional clock of LPTMR must be SIRC.
You can refer to below example; LPTMR in VLPS is used to trigger CMP, that wakeups MCU
https://community.nxp.com/docs/DOC-335759
BR, Petr
In the example project, I find the SIRCLPEN = 1 and SIRCSTEN = 1;
However, I develop my project based on S32K1_RTD_1_0_1_D2202_ASR_REL_4_4_REV_0000_20220224 and config the MCAL with EB, and I find that the "SIRC Stop Enable" could not be enabled. So if I run "Mcu_SetMode(McuModeSettingConf_VLPS)" , the lptmr seems does not work anymore, and the wakeup function does not work, either. In this case, the power consumption is 0.95mA 24V.
If "IP_SCG->SIRCCSR |= SCG_SIRCCSR_SIRCSTEN(1U)" run before I set mcu mode into VLPS, the wakeup function works but the power consumption is 2.30mA 24V. I thinks the power consumption is too big, even bigger than VLPR mode(1.2mA 24V).
Is there any wrong in my project?
Hi,
I do not know your project, so cannot comment.
You can refer to the AN5425, it discusses tips for making low-power measurements.
BR, Petr