HOW to Distinguish between initial power-on and sleep wake-up states in S32K344

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

HOW to Distinguish between initial power-on and sleep wake-up states in S32K344

Jump to solution
316 Views
KerryJ
Contributor II

Hi, I got a problem with S32K344, I learned sleep wake-up will trigger a function reset, But I don't know how to Distinguish between initial power-on and sleep wake-up states. Hope to get your help, thanks a lot.

0 Kudos
1 Solution
301 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @KerryJ,

Read the MODE_STAT[PREV_MODE] bit.

danielmartynek_0-1662550983413.png

If you use RTD, there is this API of the POWER_IP driver: Power_Ip_GetPreviousMode().

 

BR, Daniel

 

View solution in original post

0 Kudos
1 Reply
302 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @KerryJ,

Read the MODE_STAT[PREV_MODE] bit.

danielmartynek_0-1662550983413.png

If you use RTD, there is this API of the POWER_IP driver: Power_Ip_GetPreviousMode().

 

BR, Daniel

 

0 Kudos