Hi, Can anybody tell me the correct way to implement a software reset on a MPC5125 processor with MQX3.7? I would want to do this if the Watchdog times out. Thanks!
Hi, same for me.
I have one mpc5125 here and tried a little until it stopped booting.
Is there a manual how to flash this thing back to factory setting?
the most correct way to do real reset is to use WDT timer of MPC5125 with SWRI bit set to 1 and let it time out (see chapter 29 of reference manual). The problem is, that the WDT is disabled in the startup code (see boot.s in the BSP) and cannot be re-enabled in software.
The only solution I see is to keep WDT enabled (do not disable it in startup) and feed it regularly, e.g. in a timer interrupt. If CPU reset is desired then stop feeding and let it time out.
Another option is to use some external circuitry to pull HW reset.
Retrieving data ...