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.