1
\$\begingroup\$

I'm using STM32CubeProgrammer to flash an MCU.

But after flash completes, to reset and run the MCU I have to interact with NRST pin by a push button.

Is there a way that right after the flash the MCU starts a reset automatically?

\$\endgroup\$
2
  • \$\begingroup\$ Through which interface you are uploading? USB/DFU, UART, or by using some JTAG/SWD adapter? \$\endgroup\$
    – Justme
    Commented Jul 18 at 13:19
  • \$\begingroup\$ SWD using st-link V3 \$\endgroup\$
    – cm64
    Commented Jul 18 at 14:07

1 Answer 1

2
\$\begingroup\$

Under the Erasing & Programming tab, you have to enable the 'Run after programming' option.

enter image description here

Source: UM2237, page 28

\$\endgroup\$
4
  • \$\begingroup\$ It would be a great solution but my experience also is that for some reason it does not really go to run code after programming so I never used it or have tried it since. May depend on through which interface you upload the firmware. \$\endgroup\$
    – Justme
    Commented Jul 18 at 13:17
  • 1
    \$\begingroup\$ @Justme If the GUI fails, I would try the command line interface (STM32_Programmer_CLI.exe). It gives you better control. Check out the --start and -rst commands. \$\endgroup\$
    – Velvet
    Commented Jul 18 at 13:33
  • 2
    \$\begingroup\$ The answer worked for me. But you need to click Start Programming instead of Download. \$\endgroup\$
    – cm64
    Commented Jul 18 at 14:08
  • \$\begingroup\$ Thanks for the feedback \$\endgroup\$
    – Velvet
    Commented Jul 18 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.