Enter VLPS but could not wake up with GPIO interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Enter VLPS but could not wake up with GPIO interrupt

ソリューションへジャンプ
1,008件の閲覧回数
KILLERzheng
Contributor IV

my project is based on MCAL 4.4 RTD 1.0.0 of S32k146 with FreeRTOS, before I try to sleep, I deinit all the modules except ICU and then use Mcu_SetMode(McuModeSettingConf_VLPS) to make mcu sleep.

it seems that the mcu is into VLPS which I could not debug via PE, but it could not wake up either.

Is there any step I missed or configuration I configed wrong?

 

 

KILLERzheng_0-1662631077521.png

 

タグ(2)
0 件の賞賛
1 解決策
985件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @KILLERzheng,

Thank you for all the information.

I think the issue is in the Sleep-on-exit mode.

If the mode is enabled, the MCU goes to VLPS again after the ISR is complete.

Please try with the mode disabled.

Also, to get lower consumption, disconnect the debugger and power-cycle the MCU.

 

Thanks,

BR, Daniel

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
997件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @KILLERzheng,

Does the GPIO interrupt work in RUN mode?

Can you measure the power consumption at VDD or BUS_CLK at the CLKOUT pin to confirm the VLPS mode?

Can you halt the MCU just before it enters the VLPS mode and check whether the interrups are not masked globaly and that NVIC is configured correctly?

Please make sure the MCU does not enter the sleep-on-exit VLPS mode?

 

Thanks,

BR, Daniel

0 件の賞賛
991件の閲覧回数
KILLERzheng
Contributor IV

Does the GPIO interrupt work in RUN mode?

ans: yes, when i set the port B0 low, the ISR works

Can you measure the power consumption at VDD or BUS_CLK at the CLKOUT pin to confirm the VLPS mode?

ans: the consumption before VLPS is >25mA, after set_McuMode, it is 10mA (but it is still high,which i measure that the consumption of MCU[without any software is 4mA])

Can you halt the MCU just before it enters the VLPS mode and check whether the interrups are not masked globaly and that NVIC is configured correctly?

ans: how to do it? 

Please make sure the MCU does not enter the sleep-on-exit VLPS mode?

ans: MCU should not enter the sleep-on-exit ? but the RM said it should be, and i do configured that "sleep-on-exit" in MCU as below.

KILLERzheng_0-1663032430580.png

 

I find that after the set_McuMode(vlps), I set the PortB0 low, the PORT_CI_ICU_IP_B_EXT_IRQ_ISR works and it could turn on the light as well as the mcu mode is run. But I do not know how to make the program re_init all the modules. Or should I reset the mcu manually?

 

KILLERzheng_1-1663032592170.png

KILLERzheng_2-1663032650634.png

 

 

0 件の賞賛
986件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @KILLERzheng,

Thank you for all the information.

I think the issue is in the Sleep-on-exit mode.

If the mode is enabled, the MCU goes to VLPS again after the ISR is complete.

Please try with the mode disabled.

Also, to get lower consumption, disconnect the debugger and power-cycle the MCU.

 

Thanks,

BR, Daniel

0 件の賞賛