How to know wakeup source/interrupt in S32k144?

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

How to know wakeup source/interrupt in S32k144?

跳至解决方案
507 次查看
huangkenny
Contributor II

Hello all, 

I'm facing weird issue that when I setup s32k144 into VLPS mode, sometimes it will be waken up with no reason, which means it cannot successfully enter VLPS mode.

The only interrupt I setup is by using following code:

PINS_DRV_SetPinIntSel( PORTA, PTA0_WAKE_PIN, PORT_INT_LOGIC_ONE );
then
POWER_SYS_SetMode( VIMSM_MCU_STATE_VLPS, POWER_MANAGER_POLICY_AGREEMENT );
 
So I'm wondering if there's some internal interrupt being triggered that cause this issue.
 
Are there any register I can check further to confirm which wakeup source/interrupt from VLPS mode is being triggered?
 
Thanks,
Kenny
标记 (2)
0 项奖励
1 解答
486 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@huangkenny

S32K1 does not have a register specially used to indicate the wake-up source, but the user can judge whether an interrupt is currently generated by capturing the NVIC value.

Here is a similar problem and a solution you can refer to.

https://community.nxp.com/t5/S32K/How-to-identify-which-interrupt-changed-Power-Mode-from-VLPS-to/m-... 

在原帖中查看解决方案

0 项奖励
2 回复数
487 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@huangkenny

S32K1 does not have a register specially used to indicate the wake-up source, but the user can judge whether an interrupt is currently generated by capturing the NVIC value.

Here is a similar problem and a solution you can refer to.

https://community.nxp.com/t5/S32K/How-to-identify-which-interrupt-changed-Power-Mode-from-VLPS-to/m-... 

0 项奖励
468 次查看
huangkenny
Contributor II

Hi Senlent,

Thanks for pointing out that clue, I have found which interrupt cause MCU wakeup from VLPS mode,

thanks!

0 项奖励