How to reset target MCU during debugging
The v2.x branch of SW4STM32 -does- provide a reset button, although it’s not immediately obvious.
It’s a new button just to the left of the double-X clear-terminated-tasks button that is part of the task list dialog (the upper left hand window in the debug view).
With the v1 branch of SW4STM32, I was able to make the “monitor reset halt” trick mentioned by others in this thread work some of the time - it would seem to work correctly if I did a ‘manual’ break (clicking the pause-icon button when the app was running in real time), but was much more hit-or-miss if I tried to do it after stopping due to a breakpoint. It definitely DOES NOT work at all if your app is in the normal run state.
It seems as the input console interface to GDB (which is where the ‘monitor reset halt’ directive is getting sent to) does not function at all in SW4STM32 v2.x. Fortunately, the new ‘reset button’ works pretty reliably.