Skip to main content
MK S.1
Visitor II
Feb 14, 2020 2:52 PM UTC
Solved

Hi, i am using stm32IDE if i entering into debug mode getting this error please help me to crack this. Failed to bind to port 61234, error code -1: No error Failure starting GDB server: TCP port 61234 not available.

..

This topic has been closed for replies.
KFuhr.1
KFuhr.1Best answer
Visitor II
Oct 14, 2020 12:55 PM UTC

I could fix it by restarting my PC. apparently the GDB server needed a restart

19 replies

TDeha.1
Visitor II
Jul 27, 2022 3:55 PM UTC

After searching for the problem on my PC's side, I ran out of ideas. It had to be some error on the MCU side. What solved it for me was putting the MCU into update mode (in CubeIDE > Help > ST-LINK Upgrade) and even though the latest version was programmed already, I updated it again which probably caused the right kind of reset on the MCU and it worked fine after.

Garnett.Robert
Senior III
Aug 14, 2022 3:51 AM UTC

Like RRei.1 said you can use tcp view.

You can get it here, it's the new improved version better interface and yopu can filter for ports.

 0693W00000QNdOCQA1.png 

Regards

Rob

RRhei.1
Visitor II
Aug 14, 2022 3:24 AM UTC

Just use Sysinternals TCPView (or similar tool), find the port in the list and 'Close Connection'.

Try programming again.

Nchen.1
Associate II
Sep 20, 2022 8:41 PM UTC

pkill gdb solved it for me