Skip to main content
Associate II
July 24, 2026
Solved

STM32N647Z0 failed to create the download file for mx25um51245 external flash

  • July 24, 2026
  • 5 replies
  • 112 views

I want to create an MX25UM51245G. sldr, but it keeps failing with a prompt

 

Use the official MX25UM51245G_STM32N6570-NUCLEO.stldr to confirm that the board can be downloaded successfully

 

Please check the MX configuration that I generated for MX25UM51245G_STM32N6_ ExtMemLoader. stldr

 

Best answer by Kouthair

Hello ​@liuqw ,
Can you try setting the optimization to “Optimize for size (-Os)” when building the external loader.

5 replies

liuqwAuthor
Associate II
July 24, 2026

Trying to adjust to the overall size, but still receiving an error message

KouthairBest answer
ST Employee
July 24, 2026

Hello ​@liuqw ,
Can you try setting the optimization to “Optimize for size (-Os)” when building the external loader.

In order 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.
liuqwAuthor
Associate II
July 27, 2026

Thank you, according to the method you mentioned, I have resolved the use of STM32N645 for MX25UM51245.

I am actually using MX25LM51245. On the hardware side, the VDDIO3 of N6 has been modified to supply 3.3V, and the power supply of MX25LM51245 has been modified to 3.3V. On the cubeMX software side, in order to modify the voltage of VDDIO3 of PWR to 3.3V, cubeIDE has been optimized for size (- Os) The use of MX25LM51245 on the board has failed. Do I need to make any other modifications? For example, Prg's OTP124?

 

Visitor
August 10, 2026

Glad you got the STM32N645 configuration working. The optimization setting is an easy detail to overlook when building an external loader. Since you’re now using the MX25LM51245 at 3.3V, I’d also double-check the external loader configuration and the flash initialization sequence against the exact memory part. The difference between the LM and UM variants could be important here, so I’d avoid assuming the same configuration will work for both.