2025-09-23 3:05 AM - last edited on 2025-09-24 2:00 AM by Andrew Neil
Hello,
While creating a project for STM32N6 I can’t find the option for hexaspi or octospi for STM32N657B0HxQ . Is there any particular option I have to enable?
I am trying to generate the ioc similar to STM32N6570-DK board .
I am on 6.15.0 STM32CubeMX.
Where is octo and hexaspi option?
also which mode I have to enable FSBL + Non Secure/Secure or only Non Secure/Secure
Best Regards,
D
Solved! Go to Solution.
2025-09-23 4:04 AM
Hello @darla14 ;
According the STM32N657 datasheet, the STM32N657B0HxQ supports only 2 XSPIs 8 bits (OCTO) and not 16-bits (HEXA)
For the Octo SPI mode, you need to configure the XSPI with Octo SPI mode.
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.
2025-09-23 4:04 AM
Hello @darla14 ;
According the STM32N657 datasheet, the STM32N657B0HxQ supports only 2 XSPIs 8 bits (OCTO) and not 16-bits (HEXA)
For the Octo SPI mode, you need to configure the XSPI with Octo SPI mode.
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.
2025-09-23 11:06 PM
Hello @KDJEM.1 ,
Thanks for your response. That means it is not possible to integrate both PSRAM (using hexaspi) and flash using (octospi). I have to instead use octospi for PSRAM (IO0- IO7 signals) as well to accommodate both with this variant of STM32N6. I am actually trying to replicate same design as STM32N6-DK board interfaced with both PSRAM and Flash.
let me know
regards,
2025-09-24 12:40 AM
Hello @darla14 ;
The STM32N6570-DK Discovery kit is a complete demonstration and development platform for the Arm® Cortex®‑M55 core‑based STM32N657X0H3Q microcontroller. This package supports 2 XSPIs ( 8 bits (OCTO) + 16-bits (HEXA)). However, you have an STM32N657B0HxQ device that supports 2 XSPIs 8 bits (OCTO). So it is not possible to integrate Hexa memories.
For design inspiration, I recommend you to look at STM32N6570-DK design board and Getting started with hardware development for STM32N6 MCUs - Application note.
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.
2025-09-24 2:33 AM
Hello @KDJEM.1 ,
thanks a lot for sharing the documentation
but i want to ask .lf we can have the above given RAM in 8 bit mode as well(octospi) as per this https://www.mouser.com/datasheet/2/1127/APM_PSRAM_OPI_Xccela_APS256XXN_OBRx_v1_0_PKG-1954780.pdf
so if am not having graphics feature and want to use it for storing data say images or neural network weights or application code i can use the same variant of STM32N6 for both flash and ram and utilising both octospi.
let me know your comments
regards,
2025-09-24 2:52 AM
Hello @darla14 ,
I think your initial question is answered "Where is octo and hexaspi option?" So, please click on Accept as Solution on the reply which answered your question.
As mentioned in the memory datasheet the APS256XXn_OBRx can be operated in X8 mode.
For the second question, I recommend you to create a new post.
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.