JN5189 Power_GetResetCause

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

JN5189 Power_GetResetCause

跳至解决方案
2,606 次查看
kuanyc
Contributor II

Hi, following the powerdown_demo example to implement both Timer0 source and DIO wake up sources, the device is able to wake up according to timer0 interval setting or manual pressing of button BP1.

However, the POWER_GetResetCause() function only returns 0x40u (PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK), regardless if it is woken up by Timer0 or BP1 button.

Is there another way to check the source of each wake up?

Thanks in advance!

0 项奖励
回复
1 解答
2,587 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. The POWER_GetResetCause reads the Reset Cause Register (RESETCAUSE), and the 0x40 (WAKEUPPWDNRESET) specifies that a timer or IO is a possible source:

Ricardo_Zamora_1-1667424373480.png

 

Regards,

Ricardo

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,581 次查看
kuanyc
Contributor II

Hi Ricardo, thanks for the pointer. Can I ask which is the document that describes this table?

(Sorry, i'm still new to the SDK)

Thanks. 

0 项奖励
回复
2,571 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

You can find more information about the API's on the "MCUXpresso SDK API Reference Manual_JN5189.pdf".

Also, the information about the register is on the "JN5189(T)/JN5188(T) User manual" (section 1.1.10 Reset Cause Register).

 

Regards,

Ricardo

2,588 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Hope you are doing well. The POWER_GetResetCause reads the Reset Cause Register (RESETCAUSE), and the 0x40 (WAKEUPPWDNRESET) specifies that a timer or IO is a possible source:

Ricardo_Zamora_1-1667424373480.png

 

Regards,

Ricardo

0 项奖励
回复