How to create a software reset without use the watchdog

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to create a software reset without use the watchdog

3,734件の閲覧回数
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,036件の閲覧回数
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,036件の閲覧回数
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