cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 OctoSPI Multiplexing XIP

WA
Visitor

I am designing a board with an STM32H725ZGT3. I would like to multiplex external Flash and RAM on the same Octospi bus and use the external flash as execute in place memory. Is this a supported configuration? 

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello;

 

An HyperFlash and HyperRAM memories with Multiplexed mode example is available in AN5050.

KDJEM1_1-1750351733515.png

KDJEM1_2-1750351871782.png

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.

View solution in original post

3 REPLIES 3
KDJEM.1
ST Employee

Hello @WA and welcome to the community;

To enable the Multiplexed mode, at least one OCTOSPI I/O port signals and the CS signal from the other port must be accessible s explained in the below figure from AN5050

KDJEM1_2-1750348506605.png

So, Multiplexed mode requires BOTH: OCTOSPIM_P2_NCS and OCTOSPIM_P1_NCS

as mentioned in the RM0468:

OCTOSPIn_NCS are not part of the multiplexing. Only OCTOSPIn_IOs, OCTOSPIn_DQS and OCTOSPIn_CLK / OCTOSPIn_NCLK are multiplexed.

KDJEM1_1-1750348466272.png

When referring to the STM32H725 datasheet, you can find that the STM32H725ZGT6 supports the multiplexed mode. The OCTOSPIM_P1_NCS is available on PB6 and OCTOSPIM_P2_NCS is available on PG12 pins for STM32H725ZGT6. 

You can used the STM32CubeMX to enable the multiplexed mode.

KDJEM1_5-1750348849180.png

KDJEM1_4-1750348826940.png

The OCTOSPI supports the execution in place (XIP) thanks to its integrated prefetch buffer.

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.

Ok, but that's pin level multiplexing

The question was more about using two different memory types, the ability to use both, and further if concurrent Memory Mapped operation on one or both of the OCTOSPI1 and OCTOSPI2

If it is possible, please provide a worked example or demonstration..

 

It should be possible to use OCTOSPI1 at 0x90000000 and OCTOSPI2 at 0x70000000, map pins (less NCS) via OCTOSPIM, probably something I'd chose to prototype quickly first before committing to a PCB. In theory it looks like it might be achievable, at least at the hardware and bare-metal level. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
KDJEM.1
ST Employee

Hello;

 

An HyperFlash and HyperRAM memories with Multiplexed mode example is available in AN5050.

KDJEM1_1-1750351733515.png

KDJEM1_2-1750351871782.png

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.