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

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

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

跳至解决方案
357 次查看
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 项奖励
1 解答
342 次查看
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 项奖励
1 回复
343 次查看
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 项奖励