Skip to main content
Visitor II
August 23, 2022
Question

Error localhost:61234: Connection timed out.

  • August 23, 2022
  • 16 replies
  • 33028 views

Error in final launch sequence:

Failed to execute MI command:

target remote localhost:61234

Error message from debugger back end:

localhost:61234: Connection timed out.

Failed to execute MI command:

target remote localhost:61234

Error message from debugger back end:

localhost:61234: Connection timed out.

Why?

    This topic has been closed for replies.

    16 replies

    Technical Moderator
    August 25, 2022

    Hello @Andrzej Dębski​ ,

    Try erasing the flash using STM32Cubeporgrammer, and make sure to activate the gdb server log in the "Debugger" tab of your debug configuration, this may helped you.

    When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

    Imen

    Visitor II
    August 12, 2025

    Had the same problem. When I connected both usb ports [one through ST-LINK\V3-SWD and one directly to other USB VCP it works!], when I disconnect USB VCP it does not work. Seems to be current/voltage related.

    No CubeIDE reset helped. 

    No Cubeprogrammer erase helped.

    No PC restart helped.

    No debugger server port reset helped.

    Luckilly my board had two (2) usb ports => more current to put MCU in configuration mode!

    [some other guy even connected pull up resistors, or SWD flying wires].

    Technical Moderator
    August 13, 2025

    Hi @CHRISTOS_PENOGLIDIS , 

    Please follow this article How to solve debugger connection issues.

    Check Debug pins (SWDIO, SWCLK) are correctly configured.

    Graduate II
    August 25, 2022

    Is the device local or remote, check settings and expectations.

    ADębs.1Author
    Visitor II
    August 26, 2022

    Local device

    Community Manager
    August 26, 2022

    Can you please provide a meaningful title for your request?

    Many thanks

    Visitor II
    November 18, 2022

    @Andrzej Dębski​ Where you able to solve this issue in the end?? Because I am having the same problem.

    Visitor II
    April 10, 2023


    _legacyfs_online_stmicro_images_0693W00000bhokDQAQ.png 

    [SPA] En nuestro caso la falla se solucionó recargando el proyecto con otro nombre. Cambiamos el cable y el cable no era el problema. El proyecto anteriormente trabajaba sin problemas, pero luego de rearmar el circuito y volver a cargar el codigo en el programa presento la falla. Esa fue la solución en nuestro caso usando la tarjeta STM32F411RE con CubeIDE 1.10.1

    Visitor II
    June 19, 2024

    CAN YOU PLEASE GIVE THE SOLUTION FOR THIS.
    I try everything for this but not solved this issue.

     

    Visitor II
    July 28, 2024

    Did u get the solution

    Visitor II
    February 4, 2024

    SiqinZhao_0-1707031772961.png

    I am having the same problem. CubeIDE 1.14.1

    Explorer II
    March 1, 2024

    I am having the same problem cube ıde and cube ıde programming, won't you help?

    Visitor II
    August 22, 2024

    Hello, I have the same probleme and I don't find how to solve it on the web :frowning_face:

    Graduate II
    September 2, 2024

    Hi @ADębs.1  any news?

    Graduate
    September 3, 2024

    same problem :(