MPC5744P Reset

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

MPC5744P Reset

2,182 次查看
Menna
Contributor I

I am trying to do a soft reset using these lines 

MC_ME. MCTL.R = 0x00005AF0; */ writes the key

MC_ME. MCTL.R = 0x0000A50F; /* the inverted key is written */

But it takes around 26 seconds. Do you know why?

0 项奖励
回复
5 回复数

2,171 次查看
Menna
Contributor I

Okay, am I using wrong registers? 

0 项奖励
回复

2,162 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

No the registers are correct.

petervlna_0-1666680699688.pngpetervlna_0-1666680699688.png

I would check if there isnt anything external connected on reset pin, to hold it active. Since it is EVB there should be no issue.

But once you enter they keys the reset will happen immediately.

I wonder how you measure the reset line.

Best regards,

Peter

 

0 项奖励
回复

2,159 次查看
Menna
Contributor I

I power a led and initiate the reset after 500 msec. The led turns on again after 26 secs, which means the reset is taking 26 secs. I can attach you the model I am using if you want to double check.

Thanks in advance. 

0 项奖励
回复

2,154 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I power a led and initiate the reset after 500 msec. The led turns on again after 26 secs, which means the reset is taking 26 secs

Well, not exactly. This means, your routine which controls pin connected to LED change its state in SW after 26sec.

If you want to know how long reset takes, then measure by oscilloscope reset line on microcontroller.

Best regards,

Peter

 

0 项奖励
回复

2,173 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

From your description of issue is not able to tell you why. I expect the issue in in your execution / measurement.

The reset is hardwired from ME module to RGM module. So once you enter mode change to enter reset, it will be executed within one clock.

Best regards,

Peter

0 项奖励
回复