STM32H7 OctoSPI Multiplexing XIP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 8:25 AM
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?
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 9:52 AM
Hello;
An HyperFlash and HyperRAM memories with Multiplexed mode example is available in AN5050.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 9:05 AM
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
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.
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 9:31 AM - edited ‎2025-06-19 9:38 AM
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.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-06-19 9:52 AM
Hello;
An HyperFlash and HyperRAM memories with Multiplexed mode example is available in AN5050.
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.
