Skip to main content
heyo
Associate III
June 30, 2026
Question

STM32U5G7VJT6Q flash loader failed to download

  • June 30, 2026
  • 2 replies
  • 43 views

Hello,

I am developing an external flash loader for an IS25LP512MJ QSPI flash on my custom board. However, I am encountering an issue where programming always fails with the following error:

Error: failed to download Sector[0]

The complete log is attached below.

I have verified the following:

  • The QSPI flash is initialized correctly.

  • I can successfully read, write, and erase the flash from my application.

  • The flash loader builds without any errors.

  • The issue only occurs when STM32CubeProgrammer (or STM32CubeIDE via the GDB server) attempts to program the external flash.

The relevant part of the log is:

Memory Programming ...
File : ST-LINK_GDB_server_a19388.srec
Size : 1.60 MB
Address : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 109]
Erasing memory corresponding to segment 1:
Erasing external memory sectors [0 191]

Download in Progress:

Error: failed to download Sector[0]
Error: failed to download the File

Has anyone experienced a similar issue or knows what could cause this error?

I would appreciate any suggestions on what to check. In particular, are there any common mistakes in the external loader implementation that could result in this error, even if the flash can be accessed normally from the application?

Thank you!

 

2 replies

mƎALLEm
ST Technical Moderator
June 30, 2026

Hello,

Custom bootloader related questions need to be posted in STM32 MCU Embedded Software forum board.

I’m moving the post then..

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
ST Technical Moderator
June 30, 2026

Hello ​@heyo 

Please refer to the article below to implement your flash loader:

How to create an external flash loader for an STM32H7RS | Community

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Saket_Om
heyo
heyoAuthor
Associate III
July 1, 2026

What am I supposed to do with this link? My STM32CubeMX project does not include an SBS configuration. Also, I described a specific issue and asked for help with that particular problem.