Skip to main content
xpp07
Associate III
December 19, 2018
Solved

How to perform a system reset by software?

  • December 19, 2018
  • 1 reply
  • 1527 views

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?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    NVIC_SystemReset();

    1 reply

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    December 19, 2018

    NVIC_SystemReset();

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