MPC5744P Reset

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

MPC5744P Reset

2,111 Views
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 Kudos
Reply
5 Replies

2,100 Views
Menna
Contributor I

Okay, am I using wrong registers? 

0 Kudos
Reply

2,091 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

No the registers are correct.

petervlna_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 Kudos
Reply

2,088 Views
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 Kudos
Reply

2,083 Views
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 Kudos
Reply

2,102 Views
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 Kudos
Reply