Error in final launch sequence: Failed to start GDB server Failed to start GDB
Hello guys,
Hope you could help me with this error.
For context, I've been using my STM32 nucleo f446re board with no problems in the past. This is the first time I've encountered this error whenever I try to program the chip or debug it using STLINK GDB SERVER. (See attached image for reference)


What's weird is that, when I try to upload my program or debug it with OPENOCD i do not encounter such errors, but I do notice when I go out of debug mode the MCU does not function, it's only when in debug mode that the MCU functions as programmed.
(in debug mode with OPENOCD)

(UPLOADING THE PROGRAM WITH OPENOCD)

I've tried using stm32cubeprogrammer to try and communicate with the MCU, it communicates with the MCU no problem, it can even read the flash, and I've tried erasing the contents of flash using the programmer in the hopes of fixing the error. But after erasing the flash the error still persists.

I've also tried connecting the BOOT0 pin to Vdd and erasing the flash after but still the same error.
Any inputs regarding this error would greatly help. Thanks!
