cancel
Showing results for 
Search instead for 
Did you mean: 

ST link error: Failed to bind to port 61235; Failure starting SWV server

meena
Associate III

Hi I am experiencing an issue on my IDE I couldn't able to Run/Debug .However the ST Link can be communicated with the target in STM32 Cube programmer but not in STM32 cube IDE.

meena_0-1742378983077.png

Console  Error:

STMicroelectronics ST-LINK GDB server. Version 7.7.0

Copyright (c) 2024, STMicroelectronics. All rights reserved.

 

Starting server with the following options:

Persistent Mode : Disabled

Logging Level : 1

Listen Port Number : 61234

Status Refresh Delay : 15s

Verbose Mode : Disabled

SWD Debug : Enabled

InitWhile : Enabled

 

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.

 

 

Can someone Please help me

 

16 REPLIES 16
Andrew Neil
Super User

@meena wrote:

Failed to bind to port 61235, error code -1: No error

Failure starting SWV server on TCP port: 61235


Suggest a "network" issue (even if everything is local to the same PC).

STM32CubeIDE does require some Windows Firewall exceptions - presumably for this kind of stuff.

So maybe something has messed with that...?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
ST Employee

Or try to unisntall CubeIDE and install the latest version 1.18.0.

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.

its windows defender blocking the St_link server.Thanks for the support.

 

Yes Updated and still its Firewall blocking the Stlink server. Thanks for the support.

StNaro
Associate

Hi,

I am having the same issue. I clearly have a clone - ooops, but am hoping you can guide me anyway. STM32CubeIDE is able to upgrade the firmware, and Arduino IDE can upload sketches, so I assume the Firewall could be the problem. I have tried adding something as an exception, and I have reinstalled the IDE, but still not working. Can you guide me how to set the Firewall?


@StNaro wrote:

I am having the same issue


Have you tried restarting the computer - it's worked for at least two different people:

 

https://community.st.com/t5/stm32cubeide-mcus/failed-to-bind-to-port-61234/m-p/789052#:~:text=Restarting%20the%20PC%20restored%20operation

 

https://community.st.com/t5/stm32cubeide-mcus/error-in-final-launch-sequence-failed-to-start-gdb-server-failed/m-p/811818/highlight/true#M36787

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Restarting did get me further, so I can now upload programs with some roundabout way that isn't necessary in Arduino IDE or with PlatformIO CLI. I'll probably have to start a new thread for that.