Skip to main content
PZamb.2
Associate III
October 30, 2023
Solved

ST_LIK Failed to bind to port 61235, error code -1 No such file or directory

  • October 30, 2023
  • 4 replies
  • 8552 views

Hi

I upgrade stmcubeide  from 1.12.1 to 1.13.2, after the st-link not work in debugger , i view the followed error:

Failed to bind to port 61235, error code -1: No such file or directory
Failure starting SWV server on TCP port: 61235
Failed to bind to port 61234, error code -1: No such file or directory
Failure starting GDB server: TCP port 61234 not available.
Shutting down...
Exit.

In the previous version the ST-LINK work , what is happend?

I tried with STM32CubeProgrammer to connect to board and programming , work fine.

 

 

 

    This topic has been closed for replies.
    Best answer by Mahmoud Ben Romdhane

    Hello @PZamb.2 ,

    First let me thank you for posting.

    I suggest that you consult this link:  Solved: Re: No ST-Link detected - Only in CubeIDE 1.13.2.

    Thanks. 

    Mahmoud.

    4 replies

    ST Technical Moderator
    October 30, 2023

    Hello @PZamb.2 ,

    First let me thank you for posting.

    I suggest that you consult this link:  Solved: Re: No ST-Link detected - Only in CubeIDE 1.13.2.

    Thanks. 

    Mahmoud.

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    PZamb.2
    PZamb.2Author
    Associate III
    October 30, 2023

    Hi thank for your answer, I reboot the pc and now work

     

    PZamb.2
    PZamb.2Author
    Associate III
    November 21, 2023

    Hi

    now have the same problem again:

    Failed to bind to port 61236, error code -1: No such file or directory
    Failure starting SWV server on TCP port: 61236
    Failed to bind to port 61235, error code -1: No such file or directory
    Failure starting GDB server: TCP port 61235 not available.
    Shutting down...

    I try to replace ST-link server from 2.1.1 to 2.1.o, like suggest from post , but no effect.

    The  ST-Link works with stm programmer but not work in stm32cubeide 1.13.2 (windows 11).

    now reboot of PC don't have effect.

    someone have any suggest ?

     

     

    Visitor II
    July 3, 2024

    I had exactly same issue with STM32CubeIDE version 1.15.1. Had a NUCLEO-G474RE run over night, then i unplugged to do some work. After replugging the usb cable the debugger no longer worked, and i got the error message:

    Failed to bind to port 61236, error code -1: No such file or directory
    Failure starting SWV server on TCP port: 61236
    Failed to bind to port 61235, error code -1: No such file or directory
    Failure starting GDB server: TCP port 61235 not available.
    Shutting down...

    If i used the STM32CubeProgrammer, then i could connect, program and read the SWD debugging info fine. So the problem must be with the IDE. After some searching around i found a patch that worked for me. The STLink usb driver had to be reinstalled, by running STM32CubeIDE->drivers->STLinkUSBDriver:dpinst_x86.exe(This depends on your CPU). Afterwards the debugger worked again!