STM32 SWD knockout

st-info is working but after i burn the program to weact blackpill using stm32cubeide, it become not work. I need keep trying st-flash erase 100 times to reprogram the flash before i can make it success in stm32cubeide for the second time burning. I am using a very cheap chinese 4 pins SWD

Solution: stop using PA13/PA14, preventing SWD lockout. GPT-5 is king !!!