Skip to main content
Graduate
February 13, 2025
Solved

Programatically (hardware) reset of STM32

  • February 13, 2025
  • 3 replies
  • 1756 views

Hello,

program that is used to flash STM32H753VI processor (powered over USB) asks to disconnect and then connect again of USB connection to start with flashing. I found also a possibility to start with flashing without reconnecting USB, and that is with reseting mCU via NRST pin. I'm searching for an option to perform the same functionality programmatically. Would calling a function below do the same as reseting mCU via NRST pin?

NVIC_SystemReset();

 Many thanks.

    This topic has been closed for replies.
    Best answer by TDK

    NVIC_SystemReset generates an internal reset which works by toggling the NRST pin. Thus yes, it produces the same effect.

    TDK_0-1739453715635.png

     

    3 replies

    Graduate II
    February 13, 2025

    yes

    Graduate II
    February 13, 2025

    Yes, that is the way to go!

    However this will probably only work when FLASH is empty. Look at the other threads regarding bootloader entry to do so when flash is already programmed.

    TDKAnswer
    Super User
    February 13, 2025

    NVIC_SystemReset generates an internal reset which works by toggling the NRST pin. Thus yes, it produces the same effect.

    TDK_0-1739453715635.png