MPC5744

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
745 Views
StarMao159376
Contributor II

Now we have a MCU reset problem. At first, we locate the hardware dog and reset it after turning it off. At present, we locate the software dog temporarily, but the customer wants us to clearly locate and solve the problem. I just want to ask: does mpc5744p have a register? Can I get the reset source before reset? If so, could you provide a demo and manual? Thank you.

0 Kudos
1 Solution
717 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Star,

yes, you can get the source of reset. See please description of RGM_DES and RGM_FES registers in the reference manual:

https://www.nxp.com/webapp/Download?colCode=MPC5744PRM

These registers are reset only on power-on. The correct procedure is to read the registers after each reset and then clear all the flags. If you do not clear the flags, the flags are accumulating and you cannot be sure what caused the most recent reset exactly.

Regards,

Lukas

View solution in original post

0 Kudos
1 Reply
718 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Star,

yes, you can get the source of reset. See please description of RGM_DES and RGM_FES registers in the reference manual:

https://www.nxp.com/webapp/Download?colCode=MPC5744PRM

These registers are reset only on power-on. The correct procedure is to read the registers after each reset and then clear all the flags. If you do not clear the flags, the flags are accumulating and you cannot be sure what caused the most recent reset exactly.

Regards,

Lukas

0 Kudos