cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S78-DK flashing issue: "Failed to execute MI command"

Berlin-raj123
Associate III

Hello,

I am working with the STM32H7S78-DK board and I want to toggle the LEDs LD1 (PO1) and LD2 (PO5).
I followed the instructions from this GitHub resource:

https://github.com/ST-TOMAS-Workshop/stm32h7s_workshop/blob/main/1_external_memory/handson/1_extmem_intro.md 

and this YouTube video:

https://www.youtube.com/watch?v=sPiFBzvCWfI&t=945s 

However, when I try to flash my program into the development board, I get this error:

Screenshot 2025-08-26 154249.png

 

I am not able to program the board because of this.

:right_arrow: Can anyone guide me on how to solve this flashing issue?
:right_arrow: Do I need to configure something specific in STM32CubeIDE or CubeProgrammer for STM32H7S78-DK?

 

14 REPLIES 14
KDJEM.1
ST Employee

Hello @Berlin-raj123 ;

 

Which STM32CubeIDE version are you using? Could you please with the latest toolchain version.

I recommend you referring STM32CubeIDE: How to debug an STM32H7Rx/Sx project without flashing boot every time. - STMicroelectronics Community  article and follow the steps indicated.

Are you experiencing the same issue with STM32CubeH7RS cube firmware Examples?

 

I hope this help you.

Thank you.

Kaouthar

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.

version : STM32CubeIDE 1.17.0

Are you experiencing the same issue with STM32CubeH7RS cube firmware Examples?

No, actually I used the GPIO Toggle example. It loaded properly, but the LED is not blinking on my STM32H7S78-DK.

@KDJEM.1I followed your resource, but I am still facing the error 'Failed to execute MI command.' What can I do? How can I flash my code to external flash memory? I will send you the LED [PO1] toggle code. Can you check the IOC?

 

 

Can you please Support me

hello @KDJEM.1 can you help me?

KDJEM.1
ST Employee

Hello @Berlin-raj123 ;

 

First of all, I aoplogize for my reply and thank you for sharing the project, I will check the issue and I will come back to you as soon as possible?

For the GPIO_IOToggle example issue, I recommend you to refer to the readme file and check the hardware and software environment and also how to use it? sections

KDJEM1_0-1757059870484.png

KDJEM1_1-1757059943322.png

Please let me if the example issue solved or not?

Also try to update your toolchain STM32CubeIDE | Software - STMicroelectronics.

Thank you.

Kaouthar

 

 

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.

@KDJEM.1  Thank you for your reply.. i was using your above instruction, but still i am facing that same issue.

and i tried below versions

cube ide version 1.17.0 & 1.19.0

cube mx version 6.15.0

cube programmer 2.18.0

@KDJEM.1  

Whenever I Compile the ExtMemLoader, I get this message in the console but there is no Error or Warning messages.

cp: can't stat 'Software/dummy_06_sep_25/ExtMemLoader/Debug/dummy_06_sep_25_ExtMemLoader.elf': No such file or directory

warning :: File copy failed under STM32CubeIDE please check that you have the right permission to copy the ExtMemLoader.

 

 

Hello, @KDJEM.1, i still waiting for your help, can i get?