MPC5748 software reset command

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5748 software reset command

ソリューションへジャンプ
1,332件の閲覧回数
yuehedeng
Contributor III

Hi,can MPC5748 use following command to make a software reset:

 MC_ME.MCTL.R = 0x00005AF0;          
 MC_ME.MCTL.R = 0x0000A50F;   

I test it in my board with these two line code, but MPC5748 just stop running, but doesn't reset itself. Is there any special configuration before using them to make a reset? 

0 件の賞賛
1 解決策
915件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

no other initialization is required. This command will reset the device. You can check the MC_RGM_FES register - the F_SOFT_FUNC flag should be set.

If you step this code in debugger or if you write to MC_ME_MCTL by the debugger, it can happen that the debugger will not catch the reset event and the behavior is different than you expect. But there should not be any issue in normal run mode.

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
916件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

no other initialization is required. This command will reset the device. You can check the MC_RGM_FES register - the F_SOFT_FUNC flag should be set.

If you step this code in debugger or if you write to MC_ME_MCTL by the debugger, it can happen that the debugger will not catch the reset event and the behavior is different than you expect. But there should not be any issue in normal run mode.

Regards,

Lukas

0 件の賞賛
915件の閲覧回数
yuehedeng
Contributor III

Thanks. It can reset successfully. Indeed, when in debug mode, the reset event can't be caught by ECU.

0 件の賞賛