2025-02-13 03:25 AM
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.
2025-02-13 03:26 AM
yes
2025-02-13 03:37 AM - edited 2025-02-13 03:39 AM
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.
2025-02-13 05:35 AM
NVIC_SystemReset generates an internal reset which works by toggling the NRST pin. Thus yes, it produces the same effect.