cancel
Showing results for 
Search instead for 
Did you mean: 

H7R7 ext flash problem

RaidenMEI
Associate II
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.
4 REPLIES 4
RaidenMEI
Associate II

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

RaidenMEI
Associate II

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

KDJEM.1
ST Employee

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

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.

RaidenMEI
Associate II

 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.