Hi all,
I have a board known as blue pill based on the STM32F103C8T6 microcontroller and also a st-link V2 chinese clone. When I am trying to debug on the software mentioned, I am able to program the board and then it disconnects and I am unable to debug any. When setting up the device, in system I used "serial wire" in the debug option. The debugger is fully being detected and as mentioned is able to program the micro with no issues at all, but after programming, it just disconnects.

Things I tried: changing the probe to OPENOCD in the debugger settings, completely erasing the micro with the STM32Programmer, reduced the frequency of the debugger, all the reset options available with no luck.
Any ideas of how to fix it? Thanks in advance