Skip to main content
Visitor II
August 3, 2025
Question

Board not connecting in IDE after powering down during debugging

  • August 3, 2025
  • 2 replies
  • 357 views

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

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    August 4, 2025

    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,

    STackPointer64_0-1754299584802.png

    Super User
    August 4, 2025

    @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.

    Technical Moderator
    August 4, 2025

    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.