cancel
Showing results for 
Search instead for 
Did you mean: 

How to perform a system reset by software?

xpp07
Senior

I'm programming a L432KC Nucleo using STM32CubeMx. When a certain condition is given in my program I want the controller to reset itself instead of pushing the external reset button. For example,

if ( x == 5){
\\reset the controller
}

Is there a way of doing this? I haven't used the watchdog concept. Is it applicable here?

1 ACCEPTED SOLUTION

Accepted Solutions

NVIC_SystemReset();

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

1 REPLY 1

NVIC_SystemReset();

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..