2025-09-04 5:04 AM
Hi,
I need to run my application in the external flash, as the size of the internal flash is very less for the stm32h7s78-dk board. I have turned on optimizations as well, but i need external flash configuration. probably XSPI1, XSPI2 what all the things i need to configure. please let me know. it's very urgent.
after configuring by referring some samples, i'm getting error while flashing. what can be done
Thanks,
Harshitha R
2025-09-04 8:45 AM
The XIP code that runs out of internal Flash to start-up the external can be found here
The OCTOSPI is on XSPI2
If you're having a problem flashing, you need to ensure that you've selected the right external loader for your tools.
Perhaps screen shot the specific error, and that from the GUI STM32 Cube Programmer
2025-09-05 2:58 PM
I also had some difficulty getting the external flash setup correctly for this board. It is now all set and it does work. My problem was I developed initial code and then tried to add the external Flash and it just did not work until I started a fresh project using external Flash.
If after the tutorial you still have issues send some screen shots of the setup.
There are two different ways to do the setup 1) XIP (eXecute In Place), and 2) jump to RAM that has the code moved to a set location. When I got started I was confusing these two methods.