@ivankravets No, same behaviour: AVAILABLE: blackmagic, jlink, mbed, stlink, stlinkCURRENT: upload_protocol = s - Pastebin.com
(I also tested libopencm3, and it can also re-flash without having to hold down the reset button.
AHA! I found out. Problem was actually solved a month ago and described here: SWD/JTAG disabled by the flashing? · Issue #61 · platformio/platform-ststm32 · GitHub
The default build flags disable the SWD debug port it seems? By adding build_flags = -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
I can flash as many times as I want without having to press the reset button.
With above flag it works fine, regardless of whether reset_config none
is specified.
[..]
verified 8392 bytes in 0.186101s (44.037 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked
[SUCCESS] Took 2.64 seconds