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
Hi scottm
We can check general purpose always on domain data storage.Please below. I extract it from UM11126.
Thanks,
Jun Zhang
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
HI
Yes, you can read PMC_AOREG1 direclty to check reset source.
Thanks,
Jun Zhang