2025-08-03 5:11 AM
I am using the Nucleo-N657X0 for a project. I was in the middle debugging my project and unplugged my board. Now I am unable to connect to my board for debugging or programming in the IDE. I can however connect to the board in CubeProgramming. How do I get my board to connect for debugging and programming again in IDE? I have the boot pins set to the following (just in case this helps):
BOOT0 = 0
BOOT1 = 1
This is what the console outputs when trying to connect.
Failed to bind to port 61235, error code -1: No error
Failure starting SWV server on TCP port: 61235
Failed to bind to port 61234, error code -1: No error
Failure starting GDB server: TCP port 61234 not available.
Shutting down...
Exit.
Thanks
2025-08-04 2:48 AM
Hello @DHOUT19, and welcome to the community!
Unplugging your board during a debugging session can sometimes cause the GDB server to hang, leaving the process running in the background. To fix this, open the Task Manager, go to the Details tab, locate the ST-LINK_gdbserver.exe process, right-click it, and select End Process. This will free the previously occupied port and allow you to restart your debugging session.
Best regards,
2025-08-04 2:57 AM
@DHOUT19 wrote:Failed to bind to port 61234, error code -1: No errorks
In true IT fashion, have you tried restarting your computer (not just the IDE)?
See: Failed to bind to port 61234.
2025-08-04 3:02 AM
Restarting the computer will also resolve the issue, as it terminates the hanging process during shutdown. However, simply restarting the IDE won’t help because the GDB server runs as a separate process. While the IDE normally starts and stops this process, it sometimes fails to terminate it when it hangs.