We are using MK221M controller.
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?
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);