How to know wakeup source/interrupt in S32k144?

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

How to know wakeup source/interrupt in S32k144?

Jump to solution
492 Views
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
Tags (2)
0 Kudos
1 Solution
471 Views
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-... 

View solution in original post

0 Kudos
2 Replies
472 Views
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 Kudos
453 Views
huangkenny
Contributor II

Hi Senlent,

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

thanks!

0 Kudos