MPC5744

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
799 次查看
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 项奖励
1 解答
771 次查看
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 项奖励
1 回复
772 次查看
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 项奖励