Skip to main content
Visitor II
August 1, 2024
Question

Hard Reset STM32

  • August 1, 2024
  • 3 replies
  • 969 views

Hi i want to hard reset my MCU once after 5 minutes is there any way to implement it i know i can do this  by NVIC_SystemReset(); but i just want to do it once after power on the mcu

 

    This topic has been closed for replies.

    3 replies

    Super User
    August 1, 2024

    @this_is_kd_singh wrote:

     i just want to do it once after power on the mcu


    Why?

    A power-on reset is "harder" than NVIC_SystemReset()...

    Super User
    August 1, 2024

    > i know i can do this  by NVIC_SystemReset()

    But you don't want to use that? Why?

    Tie a open drain GPIO pin to NRST and set it low to hard reset the chip.

    Graduate II
    August 1, 2024

    Perhaps stash a magic value in RAM at the 5 minutes reset, and flag to yourself not to do that again when you recognize that at start up.