Skip to main content
xpp07
Associate III
Dec 19, 2018 4:11 PM UTC
Solved

How to perform a system reset by software?

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.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Dec 19, 2018 4:43 PM UTC

    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..

    1 reply

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Dec 19, 2018 4:43 PM UTC

    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..