Launching SW4STM32 debug fails
Hello,
The error message in log is that it couldn’t halt the core and afterwards, the flash erase fails because the mcu is not halted.
I suspect the reset line is not connected on your target (from stlink).
Can you try to connect it and retry ?
If not possible to connect the reset, you must NOT use the default option “connect under reset” and you should use the “software reset” option (in debug configuration, in debugger tab, you can choose the stlink freq and connection mode).
In that case, you might not be able to reconnect if the mcu has a program running in low power...
The voltage is also measured at 0V so you didn’t connect the VDD of the mcu to the stlink input.
This is not mandatory to work but better for voltage adapter.
Rgds,
Laurent