JN5189 Power_GetResetCause

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

JN5189 Power_GetResetCause

Jump to solution
756 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
1 Solution
737 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
3 Replies
731 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
721 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

738 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