JN5189 Power_GetResetCause

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

JN5189 Power_GetResetCause

ソリューションへジャンプ
1,064件の閲覧回数
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 解決策
1,045件の閲覧回数
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 返答(返信)
1,039件の閲覧回数
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 件の賞賛
返信
1,029件の閲覧回数
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

1,046件の閲覧回数
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 件の賞賛
返信