2026-05-18 5:51 AM
I just spent some time trying to get a debug session going in VSCode ony to be given the rather obscure error message: "bound doStepConnectToTarget Failed: could not connect (error 138): The system tried to join a drive to a directory on a joined drive."
Eventually I realised what it was - I had enabled RDP protection on the device (STM32C5) so of course it could not connect.
May I suggest that a more appropriate error message is given in such circumstances?
(this is with stlink gdb debugger, latest version.)
2026-05-18 6:07 AM
This seems to be a generic GDB issue - nothing specific to ST.
2026-06-04 7:50 AM
Hi @AHugh.2
this error is shown in two cases
1- outdated ST-link FW , you can update the FW
2- stuck debug process (it can occurs if you unplug the board while debugging), you can kill it from the task manager
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.