2025-04-01 5:10 AM - edited 2025-04-01 5:12 AM
So I'd been merrily using STM32CubeIDE all morning, doing the usual code-download-debug cycle with no problems at all.
Then, after some code updates & successful build, it suddenly can't reach the GDB server:
STMicroelectronics ST-LINK GDB server. Version 7.4.0
Copyright (c) 2023, 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 61234, error code -1: No error
Failure starting GDB server: TCP port 61234 not available.
Shutting down...
Exit.
Several people seem to have had this recently; eg,
So why should this change when nothing has been updated - I'm just working in the IDE as usual ?!
This is CubeIDE v1.13.0 - so old, yes - but surely no reason for it to just give up in the middle of a session?
On Windows-11 - no updates have happened.
Solved! Go to Solution.
2025-08-26 4:09 AM
I ran into this issue way to often by now and for me at least this gave me the best hint why the debug session failed. Now I need to find out who reserved a certain Port range and why it does not happen sometimes.
2025-08-26 4:22 AM
@MWiel.1 wrote:I need to find out who reserved a certain Port range and why it does not happen sometimes.
maybe it's nothing to do with Port reservations?
See the possible explanation in the marked solution - which, I think, fits better with "happen sometimes" ... ?