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.
已解决! 转到解答。
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
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