AnsweredAssumed Answered

How to find the reset source using MC_RGM register on SPC560C50L3 controller?

Question asked by vishrut nair on Feb 17, 2018
Latest reply on Feb 19, 2018 by Erwan Y

Hello Everyone,

I am currently working on SPC560C50L3 controller with SPC5 studio. How do I differentiate between different resets for Eg. watchdog reset, power ON reset etc.
Through code I want the controller to identify the source of reset.
In the reference manual, they have mentioned RGM register (RGM.FES & RGM.DES), which will help the controller to identify the type of reset. But my question is, how to use this register? 
I tried to read the RGM register in the start of my main function, but every time I was getting 0. 
There must be some way to use this register to identify the cause of last reset.

 

Regards,

Vishrut.

Outcomes