I would like to know the way to know the reason of a reset in MPC5748G:
Is the reset cause by
* Power on reset
* Watchdog timer time out
* self-test failed
Is there a register that I could check to find out the reset reason?
In RGM (reset generation module) you can see reset sources in FES and DES registers.
HI Peter Vlna
If I want to detect (cold) power-up, it looks I can check F_POR bit of the register MC_RGM_DES.
Q1: does our SW needs to write 1 to F_POR of the register MC_RGM_DES to clean it after boot-up?
Q2: the RM mentioned only allowed to write it in test mode mode or supervisor mode. What is the test mode here?
A1: it is not necessary, but I recommend it. So, you can track last reset source when a failure occurs in your system.
A2: Test mode is not available for customers. You must use Supervisor mode. Supervisor mode is intended to be used for micro configuration.
Hi Peter Vlna
During my test I found F_POR bit of the register MC_RGM_DES can be cleared by set 1 in user mode. No need to switch to supervisor mode.
Any comment for this?
Retrieving data ...