MPC5746C: force reset

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

MPC5746C: force reset

跳至解决方案
4,534 次查看
michaelchien
Contributor II

Is it possible to force MPC5746C reset?

for example, MC9S12XDT will go reset when I set AMRCOP register 0xFF.

is there any register of MPC5746C which is able to reset it?

1 解答
4,242 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, you can use the MC_ME module to enter the RESET mode (SW functional reset):

 

/* software reset */   

ME.MCTL.R = 0x00005AF0;

ME.MCTL.R = 0x0000A50F;

 

or for SW destructive reset

ME.MCTL.R = 0xF0005AF0;

ME.MCTL.R = 0xF000A50F;

在原帖中查看解决方案

7 回复数
4,243 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, you can use the MC_ME module to enter the RESET mode (SW functional reset):

 

/* software reset */   

ME.MCTL.R = 0x00005AF0;

ME.MCTL.R = 0x0000A50F;

 

or for SW destructive reset

ME.MCTL.R = 0xF0005AF0;

ME.MCTL.R = 0xF000A50F;

4,242 次查看
rehabmansour
Contributor III

Hi David,

 I am searching for the same thing for MPC5606B 

I need to do a SW destructive reset ,but I can't find this in the data sheet ,any alternative for this value for MPC5606B ??

I want alternative for this code 

or for SW destructive reset

ME.MCTL.R = 0xF0005AF0;

ME.MCTL.R = 0xF000A50F;

0 项奖励
回复
4,242 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

On MPC5606B there is no option for SW destructive reset, this has been added later. MPC5606B is only possible to reset software way by functional reset.

0 项奖励
回复
4,242 次查看
rehabmansour
Contributor III

So how can I perform a Hard reset (cold boot) from software on MPC5606B ?

0 项奖励
回复
4,242 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

I have found out that Software watchdog can cause destructive reset. Thus you could let watchdog to expire intentionally, but after reset you would have set F_SWT flag, question is whether it would be OK for your application or not.

pastedImage_1.png

4,242 次查看
rehabmansour
Contributor III

Hi David thank you ,I am confused where did you get this table from my reference manual looks like this ?!

ref_1.png

0 项奖励
回复
4,242 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Actually, I have taken the screenshot from MPC5607B manual. The whole RGM chapter in MPC5606BRM is somehow "weird", including block diagram where all reset sources disappeared. I have checked with debugger and all reset sources are present.