cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to execute MI command: load /[user/]/[Project]/STM32CubeIDE/Appli/Debug/Template_XIP_Appli.elf

avantgov
Associate

Using STM32H7S78-DK board with a STM32CubeIDE project that utilizes an external memory loader, which is included in the project structure. when running debug I am getting a failure with the following console output: 

 

 

Error in final launch sequence: Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Appli/Debug/Template_XIP_Appli.elf Error message from debugger back end: Load failed ,Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Boot/Debug/Template_XIP_Boot.elf Error message from debugger back end: Error finishing flash operation Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Appli/Debug/Template_XIP_Appli.elf Error message from debugger back end: Load failed ,Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Boot/Debug/Template_XIP_Boot.elf Error message from debugger back end: Error finishing flash operation Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Appli/Debug/Template_XIP_Appli.elf Error message from debugger back end: Load failed Load failed Failed to execute MI command: load /[User]/[Project]/STM32CubeIDE/Boot/Debug/Template_XIP_Boot.elf Error message from debugger back end: Error finishing flash operation Error finishing flash operation
View more

 

 

 Similar forum posts have recommended actions such as running the project with BOOT0 set, clearing out the flash memory with cubeprogrammer, and running the reset behavior as None. None of these have been successful or changed the error message. Console output is below, asking for any help or recommendation on how to resolve this error? Running STMCubeIDE on ubunutu LTS 20.04 

 

 

STMicroelectronics ST-LINK GDB server. Version 7.8.0 Copyright (c) 2024, STMicroelectronics. All rights reserved. Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug : Enabled InitWhile : Enabled Waiting for debugger connection... Debugger connected Waiting for debugger connection... Debugger connected Waiting for debugger connection... ------------------------------------------------------------------- STM32CubeProgrammer v2.17.0 ------------------------------------------------------------------- Warning: The external loader file does not exist: Template_XIP_ExtMemLoader.stldr Encountered Error when opening /opt/st/stm32cubeide_1.16.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_2.1.400.202404281720/tools/bin/STM32_Programmer_CLI Error in STM32CubeProgrammer Shutting down... Exit.

 

 



1 REPLY 1
MM..1
Chief III

Start with complete simple project only for internal flash. In your log is reported missed file for load external flash on DK. Optimal is close IDE and all, and open only Programmer GUI. First step is upgrade onboard STLINK. After this try connect and read MCU.