cancel
Showing results for 
Search instead for 
Did you mean: 

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

oxc07w2
Associate II

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 ACCEPTED SOLUTION

Accepted Solutions

Hello @oxc07w2 ,

 

This application runs from the external Flash memory (LwIP_TCP_Echo_Server Appli).

It boots from internal Flash (Template_XIP_Boot) then jumps to the application code in external Flash.

To configure STM32CubeIDE Debug Configuration, you must do the following:

1. Upload the template XIP Boot

Home\STM32Cube\Repository\STM32Cube_FW_H7RS_V1.1.0\Projects\NUCLEO-H7S3L8\Templates\Template_XIP\STM32CubeIDE\Boot

2. Add the adequate external loader in Project->Debugger Configuration


3. Add in the startup the template_XIP_Boot in Project->Debugger Configuration


4. Move up the application in the startup

 

MahmoudBenRomdhane_0-1737119762928.png

MahmoudBenRomdhane_1-1737119844338.png

MahmoudBenRomdhane_3-1737119892331.png

For more details, I suggest also that you take a look at Readme file.

I will be waiting for your feedback.

 

Best Regards.

Mahmoud

View solution in original post

5 REPLIES 5
oxc07w2
Associate II

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

oxc07w2
Associate II

Nobody out there who used example projects for the NUCLEO-H7S3L8 board and can confirm the bug or tell me what's my mistake?

Mahmoud Ben Romdhane
ST Employee

Hello @oxc07w2 ,

First let me thank you for posting.

Your request is under investigation. I will get back to you ASAP.

Best Regards

Mahmoud

Hello @oxc07w2 ,

 

This application runs from the external Flash memory (LwIP_TCP_Echo_Server Appli).

It boots from internal Flash (Template_XIP_Boot) then jumps to the application code in external Flash.

To configure STM32CubeIDE Debug Configuration, you must do the following:

1. Upload the template XIP Boot

Home\STM32Cube\Repository\STM32Cube_FW_H7RS_V1.1.0\Projects\NUCLEO-H7S3L8\Templates\Template_XIP\STM32CubeIDE\Boot

2. Add the adequate external loader in Project->Debugger Configuration


3. Add in the startup the template_XIP_Boot in Project->Debugger Configuration


4. Move up the application in the startup

 

MahmoudBenRomdhane_0-1737119762928.png

MahmoudBenRomdhane_1-1737119844338.png

MahmoudBenRomdhane_3-1737119892331.png

For more details, I suggest also that you take a look at Readme file.

I will be waiting for your feedback.

 

Best Regards.

Mahmoud

@Mahmoud Ben Romdhane Thank you, now I got it to work.

I read the part "How to use it ?" in the readme file, but didn't understand it, as I'd never had anything to do with splitted code (boot and external) and running code from external memory. Now I know that "template XPI" is an separate example project.