Skip to main content
gocchan
Associate III
July 1, 2026
Solved

'Launching project_name' has encountered a problem.

  • July 1, 2026
  • 1 reply
  • 19 views

When I run/debug with CubeIDE (2.2.0), I get the following error.

Restarting my PC and reinstalling CubeIDE doesn't solve the problem.

What should I do?

 

 

 

Error in final launch sequence:

 

Failed to execute MI command:

target remote localhost:61234

 

Error message from debugger back end:

could not connect (error 138): \212ù\202É\220Ú\221±\202³\202ê\202Ä\202¢\202é\203h\203\211\203C\203u\217ã\202Ì\203f\203B\203\214\203N\203g\203\212\202É\203h\203\211\203C\203u\202ð\220Ú\221±\202µ\202æ\202¤\202Æ\202µ\202Ü\202µ\202½\201B

Failed to execute MI command:

target remote localhost:61234

 

Error message from debugger back end:

could not connect (error 138): \212ù\202É\220Ú\221±\202³\202ê\202Ä\202¢\202é\203h\203\211\203C\203u\217ã\202Ì\203f\203B\203\214\203N\203g\203\212\202É\203h\203\211\203C\203u\202ð\220Ú\221±\202µ\202æ\202¤\202Æ\202µ\202Ü\202µ\202½\201B

could not connect (error 138): \212ù\202É\220Ú\221±\202³\202ê\202Ä\202¢\202é\203h\203\211\203C\203u\217ã\202Ì\203f\203B\203\214\203N\203g\203\212\202É\203h\203\211\203C\203u\202ð\220Ú\221±\202µ\202æ\202¤\202Æ\202µ\202Ü\202µ\202½\201B

Best answer by gocchan

Hello, 

The problem was caused by connecting JP1 to 5V_INT.

Thank you very much.

 

1 reply

Ghofrane GSOURI
ST Technical Moderator
July 1, 2026

Hello ​@gocchan 

Open STM32CubeProgrammer and check whether the ST-LINK is detected, whether the target device connects successfully, and whether the ST-LINK firmware can be updated. If STM32CubeProgrammer also cannot establish a connection, the most likely root cause is not the application itself but a lower-level issue such as a driver problem, a faulty or power-only USB cable / USB port issue.

I will be waiting for your feedback.

THX

Ghofrane

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.
gocchan
gocchanAuthorBest answer
Associate III
July 2, 2026

Hello, 

The problem was caused by connecting JP1 to 5V_INT.

Thank you very much.