Skip to main content
MK S.1
Visitor II
February 14, 2020
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.

  • February 14, 2020
  • 13 replies
  • 23434 views

..

Best answer by KFuhr.1

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

13 replies

TDeha.1
Visitor II
July 27, 2022

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
August 14, 2022

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
August 14, 2022

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

Try programming again.

Nchen.1
Associate II
September 20, 2022

pkill gdb solved it for me