cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK - not connecting to stm32f407

harshad1
Associate

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 2
STTwo-32
ST Employee

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 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


@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