Determining cause of last reset

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

Determining cause of last reset

912 Views
scottm
Senior Contributor II

On the LPC55S69, is there a way to determine the exact cause of the last reset? On Kinetis devices the Reset Control Module provides this with a good degree of granularity. So far all I've found for the LPC55xx is the BOOTMODE field of the Power Management Controller's STATUS register, but that lumps POR, pin reset, BOD, and software reset together.

I see that the same question was asked in https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S66-how-to-get-reset-reason-and-etc/m-p/95694... but no answer was provided.

Thanks,

Scott

Labels (1)
0 Kudos
Reply
3 Replies

900 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi scottm 

We can check general purpose always on domain data storage.Please below. I extract it from UM11126.

ZhangJennie_0-1667376624988.png

Thanks,

Jun Zhang

 

0 Kudos
Reply

895 Views
scottm
Senior Contributor II

Thanks, I glanced over the Power Management chapter thinking it might be in there but the name "General purpose always on domain data storage" sounded more like a SRAM register file or something. It wasn't coming up on any of the search terms I used.

Should I be accessing this using the PMC_AOREG1 macros? I don't see anything in the MCUX SDK that seems to cover it.

Scottt

0 Kudos
Reply

892 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI

Yes, you can read PMC_AOREG1 direclty to check reset source.

Thanks,

Jun Zhang

 

0 Kudos
Reply