Skip to main content
Associate III
August 7, 2026
Question

Request for STM32CubeMX Configuration Guidance for Dual Octal Memory with STM32N657X0H3Q.

  • August 7, 2026
  • 1 reply
  • 73 views

Dear STM Community Team,

We are working with the STM32N657X0H3Q microcontroller in our custom hardware design. We have interfaced S80KS5123GABHB020 Octal RAM devices with the controller using the XSPI interface.

In our design, we are using a dual Octal memory configuration as described in the STM32N6 Reference Manual. The two 8-bit memories are configured to operate together as a 16-bit external memory interface.

We would like your guidance regarding the correct STM32CubeMX configuration settings for this dual Octal memory setup.

Our configuration details are:

  • MCU: STM32N657X0H3Q

  • External Memory: S80KS5123GABHB020

  • Interface: XSPI

  • Memory Configuration: Dual Octal mode (two 8-bit memories forming a 16-bit interface)

  • Intended usage: External RAM for (ltdc)framebuffer

  • Memory mapped access: XSPI memory-mapped mode

Could you please confirm the recommended STM32CubeMX settings for the following parameters?

  1. XSPI mode selection:

    • Should the configuration be set as HEXASPI mode?

    • Are there any specific settings required for two parallel Octal RAM devices?

  2. Memory configuration:

    • What should be the correct settings for:

      • Device size

      • Memory type

      • Data width

      • Chip select configuration

      • Delay block configuration

  3. Timing parameters:

    • Recommended values for:

      • Read latency

      • Write latency

      • Clock frequency

      • DQS configuration

  4. Memory-mapped mode:

    • Are any additional system configurations required before accessing the external RAM at the XSPI memory-mapped address region?

    • Are there any MPU/cache settings recommended for framebuffer usage?

We have referred to the STM32N6 reference manual and would like to confirm our STM32CubeMX configuration.

Any example project or recommended configuration for STM32N657X0H3Q with dual Octal RAM would be highly appreciated.

Thank you for your support.

Best regards,

Shivani e.

1 reply

KDJEM.1
ST Technical Moderator
August 13, 2026

Hello ​@Shivani and welcome to the community;

 

There are differences between dual-octal mode and hexa mode. For example in Dual octal mode two external octal-SPI devices (device A and device B) are used and  in XSPI  (hexa)  mode a single external XSPI device is used.

For that, I recommend you to look at RM0486 precisely sections  Dual-octal configuration and  XSPI mode. 

I advise you to look at How to execute code from the external PSRAM using the STM32N6 | Community article may help you.

 

For  missing Dual octal mode in STM32CubeMx, I reported this issue internally for checking and fixing.

Internal ticket number CDM0065082 (This is an internal tracking number and is not accessible or usable by customers). 

 

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.