Skip to main content
ADębs.1
Senior
Aug 23, 2022 11:50 AM UTC
Question

Error localhost:61234: Connection timed out.

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.

    22 replies

    ST Technical Moderator
    Aug 25, 2022 3:00 PM UTC

    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Visitor II
    Aug 12, 2025 9:27 PM UTC

    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].

    ST Technical Moderator
    Aug 13, 2025 3:04 PM UTC

    Hi @CHRISTOS_PENOGLIDIS , 

    Please follow this article How to solve debugger connection issues.

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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    Tesla DeLorean
    Guru
    Aug 25, 2022 4:29 PM UTC

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

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    ADębs.1
    ADębs.1Author
    Senior
    Aug 26, 2022 1:58 PM UTC

    Local device

    ST Community Manager
    Aug 26, 2022 2:23 PM UTC

    Can you please provide a meaningful title for your request?

    Many thanks

    AZube.2
    Associate III
    Nov 18, 2022 1:25 PM UTC

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

    DQues.1
    Visitor II
    Apr 10, 2023 11:55 PM UTC


    _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

    Associate
    Jun 19, 2024 6:07 AM UTC

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

     

    Visitor II
    Jul 28, 2024 5:38 PM UTC

    Did u get the solution

    Visitor II
    Feb 4, 2024 7:29 AM UTC

    SiqinZhao_0-1707031772961.png

    I am having the same problem. CubeIDE 1.14.1

    Associate
    Mar 1, 2024 12:46 PM UTC

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

    Visitor II
    Aug 22, 2024 12:08 PM UTC

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

    SGasp.1
    Associate III
    Sep 2, 2024 8:40 AM UTC

    Hi @ADębs.1  any news?

    Graduate
    Sep 3, 2024 2:03 PM UTC

    same problem :(