cancel
Showing results for 
Search instead for 
Did you mean: 

Example project "Failed to execute MI command" - new project works

oxc07w2
Associate

IDE: STM32CubeIDE 1.17.0

Board: NUCLEO-H7S3L8

OS: Kubuntu 24.04 / Windows 10

 

I imported different example projects, but when I want to debug the project, I get this error

"Failed to execute MI command:
load /home/[User]/STM32CubeIDE/workspace_1.17.0/[Example]/STM32CubeIDE/Appli/Debug/[Example]_Appli.elf"

(complete output below)

I tried Linux Kubuntu 24.04 and Windows 10 (VirtualBox), the on board ST-Link v3 (JP1 open) and external ST-Link v3 (JP1 set). Then I created a new Project without any user code and it works.

Next I tried an example project for NUCLEO-F446ZE (on board ST-Link v2-1) and it works fine, too.

 

In addition, the example Project "LwIP_HTTP_Server_Raw" for H7S3L8 even caanot be imported. After pressing "Finish" the windows remains open with the error message "Fail to perform local copy" on top. With "Cancel", the example is not listed in the prject explorer, but is present on the file system (workspace). After this, the folder from the workspace can be imported an the project can be build without an error. Then I get the same error like described above.

 

As a consequence, I think it's a bug, maybe only affecting this board.

 

The detailed error messages. Linux, SWD:

 

Error in final launch sequence:

  Failed to execute MI command:
  load /home/[User]/STM32CubeIDE/workspace_1.17.0/LwIP_HTTP_Server_Raw/STM32CubeIDE/Appli/Debug/LwIP_HTTP_Server_Raw_Appli.elf 

Error message from debugger back end:
Load failed
Failed to execute MI command:
load /home/[User]/STM32CubeIDE/workspace_1.17.0/LwIP_HTTP_Server_Raw/STM32CubeIDE/Appli/Debug/LwIP_HTTP_Server_Raw_Appli.elf 

Error message from debugger back end:
Load failed
Failed to execute MI command:
load /home/[User]/STM32CubeIDE/workspace_1.17.0/LwIP_HTTP_Server_Raw/STM32CubeIDE/Appli/Debug/LwIP_HTTP_Server_Raw_Appli.elf 

Error message from debugger back end:
Load failed
Load failed

 

Linux, JTAG:

 

Error in final launch sequence:

  Failed to execute MI command:
  target remote localhost:61234

Error message from debugger back end:
localhost:61234: Die Wartezeit für die Verbindung ist abgelaufen. (waiting time for connection expired)
Failed to execute MI command:
target remote localhost:61234

Error message from debugger back end:
localhost:61234: Die Wartezeit für die Verbindung ist abgelaufen. (waiting time for connection expired)
localhost:61234: Die Wartezeit für die Verbindung ist abgelaufen. (waiting time for connection expired)

 

Windows 10 (Virtual Box), SWD:

 

Error in final launch sequence:

  Failed to execute MI command:
  load C:\\Users\\[User]\\STM32CubeIDE\\workspace_1.17.0\\ADC_SingleConversion_TriggerSW_IT\\STM32CubeIDE\\Appli\\Debug\\ADC_SingleConversion_TriggerSW_IT_Appli.elf 

Error message from debugger back end:
Load failed
Failed to execute MI command:
load C:\\Users\[User]\\STM32CubeIDE\\workspace_1.17.0\\ADC_SingleConversion_TriggerSW_IT\\STM32CubeIDE\\Appli\\Debug\\ADC_SingleConversion_TriggerSW_IT_Appli.elf 

Error message from debugger back end:
Load failed
Failed to execute MI command:
load C:\\Users\[User]\\STM32CubeIDE\\workspace_1.17.0\\ADC_SingleConversion_TriggerSW_IT\\STM32CubeIDE\\Appli\\Debug\\ADC_SingleConversion_TriggerSW_IT_Appli.elf 

Error message from debugger back end:
Load failed
Load failed

 

Windows 10 (Virtual Box), JTAG:

 

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.

 

 What can I do to use the example projects for the H7S3L8 board?

I searched for threads dealing with the error message "Failed to execute MI command" and found some results, but always in another variation.

1 REPLY 1
oxc07w2
Associate

I noticed, that all example projects for H7S3L8 are containing one "sub project" called Appli, while all new projects are containung two sub prjects Appli and Boot. I tried to add the boot project from one new project into an example project, but it doesn't work, or I don't know how.

H7S3L8_Example_vs_New.png