Software Reset with MPC5125 and MQX3.7?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Software Reset with MPC5125 and MQX3.7?

1,000 次查看
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 项奖励
回复
2 回复数

782 次查看
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

 

782 次查看
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 项奖励
回复