Skip to main content
Explorer
March 6, 2025
Question

H7R7 ext flash problem

  • March 6, 2025
  • 4 replies
  • 661 views
I've purchased an STM32H7R7L8HxH development board, but I'm not sure how to download a binary file to the external flash.

 

The external flash consists of two W25Q128 chips. The Chip Select (CS) lines of both chips are connected to XSPI1_CS PO0. The Clock (CLK) lines of both chips are connected to XSPI1_CLK PO4. The data lines (D0 - D3) of the first chip are connected to XSPI1_DQ0(PP0) to XSPI1_DQ3(PP3), while the data lines (D0 - D3) of the second chip are connected to XSPI1_DQ4(PP4) to XSPI1_DQ7(PP7).

 

I'm at a loss as to how to solve this issue. I've discovered that it's possible to create an external flash download project in CubeIDE, but I don't know the specific steps. In my area, many people are unfamiliar with external flash downloading.

 

Could you please help me? If it simplifies the process, you can focus on using just the first W25Q128 chip and ignore the second one. I'd be extremely grateful for your assistance.
    This topic has been closed for replies.

    4 replies

    RaidenMEIAuthor
    Explorer
    March 6, 2025

    屏幕截图 2025-03-07 030908.png

    RaidenMEIAuthor
    Explorer
    March 7, 2025

    if any one can fix that i can give him 15$

    Technical Moderator
    March 10, 2025

    Hello @RaidenMEI;

     

    I recommend you to look at this FAQ How to create an external flash loader for an STM32H7RS and get inspired to create your own external loader.

     

    You need to configure the XSPI interface according to the XSPI mode used and the memory settings. 

    If you want to use two memories, each device uses the same CLK and NCS signals, but each has a separate IO0 to
    IO3 signals. In this case, the XSPI is configured in Dual-Quad SPI mode.

    KDJEM1_0-1741596353535.png

    If you want to use only one memory, the XSPI is configured in Quad-SPI mode.

    KDJEM1_1-1741596398048.png

     

    I hope this help you.

    Thank you.

    Kaouthar

    RaidenMEIAuthor
    Explorer
    March 12, 2025

     Following your post,I enbale the boot, extflash loader.and set the QSPI flash. but I dont know which file should I over write to add my QSPI flash and porting like init(),read(),write() into it.