Skip to main content
Associate II
August 4, 2026
Question

Guidance Required for STM32CubeMX Configuration of Dual-Octal XSPI Memory on STM32N657X0H3Q

  • August 4, 2026
  • 1 reply
  • 81 views

Dear ST Community Team,

We are working on the STM32N657X0H3Q microcontroller and interfacing two Infineon S80KS5123GABHB020 Octal HYPERRAM devices using the XSPI1 interface in the dual-octal (16-bit) configuration, as shown in the STM32N6 Reference Manual (Figure 196 – XSPI block diagram for dual-octal configuration).

In our hardware design:

  • MCU: STM32N657X0H3Q
  • Interface: XSPI1
  • Memory devices: 2 × Infineon S80KS5123GABHB020 Octal HYPERRAM 
  • Configuration: Dual-octal mode (two 8-bit memories operating as a single 16-bit memory interface)
  • Both memories are connected according to the STM32N6 dual-octal configuration.

We would like guidance on how to correctly configure this setup in STM32CubeMX.

Could you please provide the recommended CubeMX configuration for the following?

  1. How should XSPI1 be configured for dual-octal mode?
  2. Which Memory Type should be selected for the S80KS5123GABHB020?
  3. How should the chip select (NCS) signals be configured for two memories operating in dual mode?
  4. Are there any required settings for:
    • Dual Memory / Dual Device mode
    • DQS configuration
    • Clock configuration
    • Delay Block calibration
    • Memory-mapped mode
  5. Is there any STM32CubeMX example project or STM32CubeN6 example available for this configuration?

We have reviewed the STM32N6 Reference Manual, but we could not find a detailed CubeMX configuration example for two S80KS5123GABHB020 devices operating in dual-octal mode.

Any guidance, example project, or recommended initialization sequence would be greatly appreciated.

Thank you for your support.

Best regards,

siddu m.

 

 

 

1 reply

ST Employee
August 4, 2026

Hello ​@siddum ,

At the moment, STM32CubeMX does not yet offer a dedicated configuration for this specific memory type. For this reason, the recommended way forward is to use the STM32_External Memory Manager middleware.

This middleware is designed to provide a common interface for external memories and includes drivers that can be adapted according to the memory type and the hardware configuration. In your case, this is the most suitable path to implement support for the dual-octal HYPERRAM arrangement on XSPI1.

You may find the following article useful as a starting point for the middleware approach:
https://wiki.st.com/stm32mcu/wiki/Introduction_to_External_Memory_Manager_custom_driver_configuration

It is also worth noting that the Reference Manual is mainly intended as a technical document for register-level programming of the STM32 peripherals. It is not meant to describe middleware usage or CubeMX configuration details.

Kind regards, 

DHIF Khaled

 

"Please mark my answer as best by clicking on the “Accept as solution"" button if it fully answered your question. This will help other users find this solution faster.​"