2026-03-18 4:50 AM
Hello,
We are developing a STLDR to be used with STM32CubeProgrammer and are having what is seemingly random issues when programming hardware.
We have already written the XSPI interface which works when executed in FLASH using test calls, but as soon as the interface is placed into the STLDR framework and used with STM32CubeProgrammer we are seeing failures of either the Init or SectorErase functions.
Sometimes it will work after a full board reset, but not always.
We have tried linking the loader at the undocumented 0x20003004 RAM address but this seemingly does not fix the issue.
We have tried using our standard development IDE (not ST) which has been successful in the past, but also following the STM32Cube tutorial and repository here, replacing the QSPI calls with XSPI:
https://github.com/STMicroelectronics/stm32-external-loader
The hardware is a custom board using the H573II with dual MX25L12833F on the XSPI bus.
The common failures we are seeing is:
We have tried using the internal flash to trace the failures, however the loader can fail before reaching XSPI initialisation in some cases.
Any help or suggestions are greatly welcomed.
Solved! Go to Solution.
2026-04-08 12:51 AM - edited 2026-04-08 12:52 AM
Hello @KDJEM.1
Thank you for taking the time to respond.
We have since been in touch with ST direclty through our supplier and they have confirmed the following two issues:
Correcting these two points, the loader now functions as expected.
Jack
2026-04-07 8:20 AM
Hello @JHedges ;
I recommend you to look at MOOC - External QSPI loader how to - YouTube may help you to check your project.
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-08 12:51 AM - edited 2026-04-08 12:52 AM
Hello @KDJEM.1
Thank you for taking the time to respond.
We have since been in touch with ST direclty through our supplier and they have confirmed the following two issues:
Correcting these two points, the loader now functions as expected.
Jack
2026-04-08 1:02 AM - edited 2026-04-08 1:02 AM
Hello @JHedges ,
Thank you for coming back to the community and for sharing the solution.
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.