Skip to main content
Visitor II
September 4, 2025
Question

stm32h7s78-dk how to run the application in external flash

  • September 4, 2025
  • 2 replies
  • 354 views

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

    This topic has been closed for replies.

    2 replies

    Graduate II
    September 4, 2025

    The XIP code that runs out of internal Flash to start-up the external can be found here

    https://github.com/STMicroelectronics/STM32CubeH7RS/tree/main/Projects/STM32H7S78-DK/Templates/Template_XIP

    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

    Explorer II
    September 5, 2025

    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.