How to create a software reset without use the watchdog

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

How to create a software reset without use the watchdog

3,733 次查看
sebastien_ledio
Contributor I

Hello community,

I am working on NXP S32K146, and I would like, by software, to create/generate a reset without watchdog, because I did not use it.

By advance, thanks for your answer.

Sebastien

0 项奖励
2 回复数

3,035 次查看
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi Sebastien,

I would like to add the note that you do not need to create an SDK project. This information can be found in the Cortex™ -M4 Devices Generic User Guide - 4.3.5 Application Interrupt and Reset Control Register

http://infocenter.arm.com/help/topic/com.arm.doc.dui0553b/DUI0553.pdf 

The code below will trigger software reset

S32_SCB->AIRCR = S32_SCB_AIRCR_VECTKEY(0x5FA) | S32_SCB_AIRCR_SYSRESETREQ(1);

Best Regards,

Diana

3,035 次查看
Yunchuan
NXP Employee
NXP Employee

Hi

you can call void SystemSoftwareReset(void)  to create/generate a reset, path: project path/SDK/platform/S32K146/startup/system_S32K146.c