How to create a software reset without use the watchdog

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a software reset without use the watchdog

813 Views
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

115 Views
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

115 Views
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