Skip to main content
MRey.1
Associate III
March 31, 2025
Solved

Error when debugging: Failed to execute MI command

  • March 31, 2025
  • 1 reply
  • 1308 views

I have a project that ran without issue, with STM32CubeIDE 1.13.0. When I updated it to 1.17.0 I could no longer debug that same project. The error window says:

Error in final launch sequence:

 

Failed to execute MI command:

load D:\\Proyectos\\STM32CubeIDE\\XXXX\\XXXX\\Debug\\XXXX.elf

 

Error message from debugger back end:

Error finishing flash operation

Failed to execute MI command:

load D:\\Proyectos\\STM32CubeIDE\\XXXX\\XXXX\\Debug\\XXXX.elf

 

Error message from debugger back end:

Error finishing flash operation

Failed to execute MI command:

load D:\\Proyectos\\STM32CubeIDE\\XXXX\\XXXX\\Debug\\XXXX.elf

 

Error message from debugger back end:

Error finishing flash operation

Error finishing flash operation

 

I added the log file in case it helps

Best answer by AScha.3

Pffft - not elf (but debug launch- maybe.).

I try in such "strange" cases: use the other debug !  (and watch for every possible error or warning message !!!)

So ST/GDB -> open OCD , set generator options ! (to same...software reset, etc.), then try...

i had sometimes very starnge effects : suddenly  debug no more working...switch to OCD , not working...switch back to using GDB - hey works again ! So try...play a little bit around.

1 reply

AScha.3
Super User
March 31, 2025

Maybe st-link needs update first...did you try ?

+

connect using CubeProgrammer , and show, what its telling. (set connect: normal, software reset)

"If you feel a post has answered your question, please click ""Accept as Solution""."
MRey.1
MRey.1Author
Associate III
March 31, 2025

Thanks for the reply

Yes, I forgot to add that I also updated the STLINK-V3 firmware

I used CubeProgrammer and had no errors:

MRey1_1-1743452214119.png

 

 

AScha.3
Super User
March 31, 2025

Good,

so it should work in IDE also. Just set same ...(set connect: normal, software reset)

because obvious: st-link and your cpu ok, can connect. So just the settings in IDE could ... be not so good.

"If you feel a post has answered your question, please click ""Accept as Solution""."