How to invoke software reset in s32k3xx?

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

How to invoke software reset in s32k3xx?

1,618 Views
najongmin
Contributor III

Of course, I already know what software reset methode in s32k1xx.

 

But i can't find s32k3xx example.

Can you let me know c code for software reset?

Labels (1)
0 Kudos
Reply
1 Reply

1,607 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @najongmin,

You can use the MC_ME module to trigger either destructive of functional software reset.

Please refer to the S32K3xx RM

30.3.3 Destructive reset sources

30.3.5 Functional reset sources

42.7.3 Mode Configuration Register (MODE_CONF)

/* MC_ME functional reset */
MC_ME->MODE_CONF = MC_ME_MODE_CONF(MC_ME_MODE_CONF_FUNC_RST_MASK);
MC_ME->MODE_UPD = MC_ME_MODE_UPD_MODE_UPD(MC_ME_MODE_UPD_MODE_UPD_MASK);
/* Direct MC_ME_CTL_KEY */
MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY(MC_ME_CTL_KEY_DIRECT_KEY_U32);
/* Inverted MC_ME_CTL_KEY */
MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY(MC_ME_CTL_KEY_INVERTED_KEY_U32);

 

Regards,

Daniel

 

0 Kudos
Reply