https://embetronicx.com/tutorials/microcontrollers/stm32/fixed-the-interface-firmware-failed-to-reset-halt-the-target-mcu-stm32/
Fixed: The interface firmware FAILED to reset/halt the target MCU - STM32