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?
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