2025-03-19 3:12 AM - last edited on 2025-03-19 3:28 AM by Andrew Neil
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.
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
Solved! Go to Solution.
2025-03-19 6:24 AM
@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...?
2025-03-19 3:28 AM
Please post a legible screenshot.
2025-03-19 3:30 AM
Hello @meena ,
The image shared is not clear. So please share a better picture resolution.
Also you didn't mention which product? which board are you using? ST board? custom board?
Are you using an external ST-LINK? if yes, is it a genuine ST-LINK?
2025-03-19 3:40 AM
I am using STM32 Discovery Kit board to program my prototype.My target have STM32G030K8 MCU. I can program hex file with STM32 Cube Programmer but not able to use STM32Cube IDE for debugging
2025-03-19 3:41 AM
@mƎALLEm wrote:Are you using an external ST-LINK? if yes, is it a genuine ST-LINK?
@meena see:
in particular:
@mƎALLEm wrote:Also you didn't mention which product? which board are you using? ST board? custom board?
@meena The article How to write your question to maximize your chances to find a solution will help you with the information to provide, and other tips ...
2025-03-19 3:44 AM
I am using STM 32 Discovery Kit as my ST link it worked fine all of a sudden I am experiencing this error.
2025-03-19 4:32 AM
@meena wrote:
I am using STM 32 Discovery Kit as my ST link it worked fine all of a sudden I am experiencing this error.
Which Discovery board? please provide the exact board name.
"as my ST link it worked fine"
-> Which ST-LINK? could you please provide a photo?
2025-03-19 4:40 AM - edited 2025-03-19 4:41 AM
This is the board usually I use for my development and debugging STM32F407G-DISC1 .I am finding issues on working in STM CUBE IDE.I can talk to the target withSTM 32Cube Programmer.I am confused why this happening.Please help
2025-03-19 5:44 AM
Why is the board still in its plastic packaging??!
@meena wrote:This is the board usually I use for my development and debugging STM32F407G-DISC1
So you're using the ST-Link on the Discovery board to program/debug a custom board?
Does the ST-Link work OK for debugging the Discovery board itself?
2025-03-19 6:10 AM - edited 2025-03-19 6:12 AM
As you have succeded with CubeProgrammer but not with CubeIDE. It could be something related to the debug config in CubeIDE.
This is from a STM32F4 project:
Try to check "ST-LINK S/N" check box and click on "scan" button, do you get the serial number of the ST-LINK?