Good morning,
I'm using HDK with CCS5. My question is about the reset of the micro.
Is it possible to save the reset cause (in a register or in the memory) and after the reset to check this cause or status?
Thanks in advance.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Good morning,
I'm using HDK with CCS5. My question is about the reset of the micro.
Is it possible to save the reset cause (in a register or in the memory) and after the reset to check this cause or status?
Thanks in advance.
Hi Luigi,
I am not a Hercules Microcontroller expert. I did a quick look at your device datasheet. You can check the cause of reset by reading the System Exception Status Register (SYSESR). See, from the device datasheet link below.
http://www.ti.com/lit/ug/spnu517a/spnu517a.pdf
-kel
Hi Luigi:
Markel is right, you can always take a look at SYSESR. If you are using Halcogen you'll find that the reset reason is being checked in sys_startup.c and some of the reset reasons are cleared there as soon as they are detected and you won't be able to know the reason after that, but there are section where you can add your "USER CODE" to keep track of the reset reason.
Regards,
Enrique