Hello,
We are using MK221M controller.
RTOS MQX4.2
I need to know the restart reason of microcontroller on every reboot.
Example: Microcontroller can restart due to Watchdog, power cycle etc.
Can you please suggest me way to do that?
Thanks
Sudhanshu
Solved! Go to Solution.
Yes RCM->SRS0, RCM->SRS1 are the registers. this is complete detail. bobpaddock was right. you can read printf ("\r\n Restart reason code %.02x %.02x", RCM->SRS0, RCM->SRS1);
for more details my reply is below
I would suggest you ask our partner, Embedded Access, for this question.
Regards
Daniel