Software Reset with MPC5125 and MQX3.7?

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

Software Reset with MPC5125 and MQX3.7?

502 Views
Tim562
Senior Contributor I

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!

 

~Tim

0 Kudos
2 Replies

284 Views
pavel_chromy
NXP Employee
NXP Employee

Hello Tim,

 

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.

 

Pavel

 

284 Views
UlKe
Contributor I

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?

 

 

Greetings

 

 

0 Kudos