cancel
Showing results for 
Search instead for 
Did you mean: 

Creating STM32N6 ioc project for hexaSPI and octoSPI.

darla14
Senior

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.

 

darla14_0-1758621776963.png

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

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @darla14 ;

 

According the STM32N657 datasheet, the STM32N657B0HxQ supports only 2 XSPIs 8 bits (OCTO) and not 16-bits (HEXA)

KDJEM1_0-1758625301717.png

For the Octo SPI mode, you need to configure the XSPI with Octo SPI mode.

KDJEM1_1-1758625447358.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

5 REPLIES 5
KDJEM.1
ST Employee

Hello @darla14 ;

 

According the STM32N657 datasheet, the STM32N657B0HxQ supports only 2 XSPIs 8 bits (OCTO) and not 16-bits (HEXA)

KDJEM1_0-1758625301717.png

For the Octo SPI mode, you need to configure the XSPI with Octo SPI mode.

KDJEM1_1-1758625447358.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.

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,

 

KDJEM.1
ST Employee

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.

KDJEM1_0-1758699052448.png

 

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.

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,

 

KDJEM.1
ST Employee

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.

KDJEM1_0-1758707364619.png

 

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.