2026-01-22 7:43 AM - last edited on 2026-04-10 2:40 AM by KDJEM.1
I am developing a project using the STM32U5G9J. In particular I based our board on the STM32U5G9J-DK2 board. My project includes over the air update for which I am using the external flash that comes on the DK2 board for temporary firmware swapping storage. The external loader MX66LM1G45G_STM32U5G9J-DK2.stldr looks like is not accessing beyond 64MBytes, giving the impression of mirroring the first 64MBytes. I need to be able to have the external loader handle fully the 128 MBytes, as well as my application being able to access the 128 MBytes by code. I am using the STM32CubeIDE 1.19.0. which the IOC file configuration for HSPI is in OCTO SPI mode with the capacity to read 128MBytes. I am using the external loader to manually write certain pieces for debugging purposes. I cannot verify if my code works until the external loader is being able to access the full 128MBytes. Please help me providing the right external loader, as well as the certainty that the IOC file can have the HSPI access the full 128MBytes of the external flash. The address for the external flash is at 0xA0000000 per the IOC memory configuration section.
2026-01-23 7:17 AM
Hello @GustavoGalan;
I recommend you to look at this article "How to implement and use your own external flash loader: An example using STM32U5A9J-DK" and get inspired from the shared steps to configure your own external loader.
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.
2026-04-10 2:43 AM
Hello @GustavoGalan;
Is my reply help to implement your external loader?
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.