How to read the reset cause using MC_RGM register on SPC58NG84E7 controller?
Hello,
I am currently working on SPC58NG84E7 controller with SPC5 studio.
I want to read the cause of reset in main routine.
In the reference manual, it is mentioned RGM register (RGM.FES & RGM.DES), which will help the controller to identify the type of reset.
I tried to read the RGM register in the beginning of my main function, but every time I am getting 0. I observed during debugging that, before entering into main routine, these registers are getting cleared. So, how to get the reset cause in main routine?
Regards,
AVM
