Skip to main content
Graduate
Feb 13, 2025 11:25 AM UTC
Solved

Programatically (hardware) reset of STM32

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.
TDK
TDKBest answer
Feb 13, 2025 1:35 PM UTC

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

TDK_0-1739453715635.png

 

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

3 replies

Javier1
Principal
Feb 13, 2025 11:26 AM UTC

yes

hit me up in https://www.linkedin.com/in/javiermuñoz/
Uwe Bonnes
Chief
Feb 13, 2025 11:37 AM UTC

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.

TDK
TDKBest answer
Feb 13, 2025 1:35 PM UTC

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

TDK_0-1739453715635.png

 

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