Get reset reason in MPC5748G

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get reset reason in MPC5748G

1,032 Views
charlie_wang_ff
Contributor I

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?

Labels (1)
Tags (1)
0 Kudos
4 Replies

655 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

In RGM (reset generation module) you can see reset sources in FES and DES registers.

pastedImage_1.png

pastedImage_2.png

Peter

0 Kudos

655 Views
travis_kuo
Contributor III

HI petervlna

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?

0 Kudos

655 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

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.

Peter

0 Kudos

655 Views
travis_kuo
Contributor III

Hi petervlna

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?

0 Kudos