Skip to main content
Associate
September 12, 2025
Question

Error finishing flash operation when programming STM32H745I-DISCO in STM32CubeIDE

  • September 12, 2025
  • 2 replies
  • 472 views

Hi folks,
I am working with an STM32H745I-DISCO board and trying to run example projects as well as TouchGFX-generated applications.

  • Board: STM32H745I-DISCO

  • IDE: STM32CubeIDE (latest version)

  • ST-LINK: Firmware updated to latest version

  • Programmer: I can flash using STM32CubeProgrammer without issues (LED blink works fine)

When I try to flash projects such as the LTDC_Display_1Layer (CM7) example or a TouchGFX application, I consistently encounter the following error in STM32CubeIDE (screenshot/log attached).

Screenshot 2025-09-12 155805.png

What I have already tried:

  1. Full chip erase in STM32CubeProgrammer

  2. Checked Option Bytes (RDP = 0xAA, nDBANK set correctly, BOOT address = 0x08000000)

  3. Tried connect under reset in debug config

  4. Updated ST-LINK firmware

  5. Verified that CM7 project is selected (not CM4)

  6. Rebuilt/cleaned project

  7. Verified that other small examples can flash correctly

Could you please guide me on what might be causing the flash operation to fail only for these larger / graphics-based projects, while simpler ones like LED blink work fine?

2 replies

ST Employee
September 12, 2025

Hello @YashaswiniMN,

Have you tried to close and re-open CubeIDE or even restart the computer ?

BR,

Associate
September 12, 2025

Hi @LouisB 

We tried closing and re-opening CubeIDE, but the same error remains.

Then we used CubeProgrammer to perform a full chip erase and re-flash the firmware. However, the error still persists, and now the MCU appears to be locked, preventing us from flashing it anymore.

Screenshot 2025-09-12 163203.png

Screenshot 2025-09-12 163147.png