Skip to main content
Senior
June 23, 2026
Question

STM32H747 custom board External loader issue

  • June 23, 2026
  • 4 replies
  • 69 views

 

As per my custom board pins(I am using single QUADSPI STR) I have selected and i tried to flash via Cube-Programmer CLIVEONE - MT25QL512_STM32H7XX-PB2-PB10-PF8-PF9-PF7-PF6.stldr

https://github.com/cturvey/stm32extldr/blob/main/h7_mt25ql512a/CLIVEONE-MT25QL512_STM32H7XX-PB2-PB10-PF8-PF9-PF7-PF6.stldr

ISSUE : flash protection enabled 

https://github.com/cturvey/stm32extldr/tree/main/h7_mt25ql512a

ISSUE: I have tried with this external loader but i am not able to erase memory 

4 replies

lavanyaAuthor
Senior
June 23, 2026

@Tesla DeLorean 

jumman_JHINGA
Senior III
June 24, 2026

If your application can access the MT25QL512 correctly but STM32CubeProgrammer reports "failed to erase memory" when using the external loader, I would investigate the loader implementation itself. In particular, check:

  • MassErase() and SectorErase() functions in the loader source.
  • Flash geometry (StorageInfo) definition.
  • 4-byte addressing initialization for MT25QL512.
  • Any STM32H747-specific modifications required by the loader.
lavanyaAuthor
Senior
June 26, 2026

Hi ​@jumman_JHINGA ,

Thank you for response,

  1. There is no Issue with Mass Erase and sector erase, I tested QSPI driver with Test Code.
  2. I tried implementing custom loader by refering 

    here erase QSPI is working but it is getting failed in Write.

  3. I performed a thorough debugging of the issue. Currently, I am facing a problem with the QSPI driver write function. During each write operation, the first byte is consistently missed, and the data write starts from the second byte instead.

ST Employee
June 24, 2026

Hello ​@lavanya,

This loader already exists in STM32CubeProgrammer for MT25QL512.

To erase the memory, please click the red Erase icon in the programmer interface.

 

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. Dor_RH
lavanyaAuthor
Senior
June 26, 2026

Hi ​@Dor_RH ,

Thank you for response,

QSPI Pins are different in custom board,I am using PB2-PB10-PF8-PF9-PF7-PF6.

I checked with EVAL board there qspi pins configuration is different.

So i can’t use thoes external loaders.

Pavel A.
June 26, 2026

If you can get a J-Link, its software has “universal” QSPI loader that handles any pinout. 

Pavel A.
June 24, 2026

If it says “flash protection enabled” then the protection is enabled. This protection exist precisely to forbid writing.

So, you replace it with a new virgin flash chip, and… same error?