JN5189 Power_GetResetCause

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

JN5189 Power_GetResetCause

Jump to solution
1,063 Views
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 Kudos
Reply
1 Solution
1,044 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,038 Views
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 Kudos
Reply
1,028 Views
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,045 Views
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 Kudos
Reply