Skip to main content
Visitor II
August 25, 2024
Question

ST-LINK - not connecting to stm32f407

  • August 25, 2024
  • 2 replies
  • 1003 views

Im getting below error while Runing the application
Board- stm32f407
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.
localhost:61234: Connection timed out.

    2 replies

    STTwo-32
    Technical Moderator
    August 25, 2024

    Hello @harshad1 and welcome to the ST Community :smiling_face_with_smiling_eyes:.

    Could you try to perform a mass erase of the board using CubeProgrammer. Then, restart CubeIDE and retry to connect. 

    Also, make sure that your ST-Link firmware is upgraded, check the jumpers, SWD pins status, try configuring the "Connect under reset" mode and dont forget to check your power supply and try to change your USB cable (ensure that you are using a data cable not a charging one).

    Best Regards.

    STTwo-32 

    Andrew Neil
    Super User
    August 26, 2024

    @harshad1 wrote:

     the application Board- stm32f407t.


    What board?

    Please see the posting tips:

    https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228 

    See also this Knowledge base article, How to solve debugger connection issues:

    https://community.st.com/t5/stm32-mcus/how-to-solve-debugger-connection-issues/ta-p/49693

     

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.