How to create a software reset without use the watchdog

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

How to create a software reset without use the watchdog

3,463 Views
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 Kudos
2 Replies

2,765 Views
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

2,765 Views
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