cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Reset STM32

this_is_kd_singh
Associate

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

 

3 REPLIES 3
Andrew Neil
Evangelist III

@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()...

TDK
Guru

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

If you feel a post has answered your question, please click "Accept as Solution".

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.

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