cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7A3VIH6 Access QSPI

amitpramanik
Associate

Hello ,

I want to Access QSPI drivers in STM32H7A3VIH6. However in Cubemx there is only option of OCTOSPI1 and OCTASPI.

amitpramanik_0-1772694844071.png

 

My question is there way to use QSPI api directly like HAL_QSPI_Init instead of OSPi init?
Or we have use OSPI only?

Secondly i am using 2 external flash to be used in each QUAD SPI.

1 ACCEPTED SOLUTION

Accepted Solutions
KDJEM.1
ST Employee

Hello @amitpramanik and welcome to the community;

 

The STM32H7A3VIH6 device have an OCTOSPI interface. And the OCTOSPI supports the QuadSPI memories as mentioned in Overall FAQs for QUADSPI/OCTOSPI/HSPI/XSPI - STMicroelectronics Community

 

You can used the OSPI drivers to configure QuadSPI memories.

According to the Datasheet - STM32H7A3xI/G - 32-bit Arm® Cortex®-M7 280 MHz MCUs, up to 2-Mbyte Flash memory, 1.4-Mbyte RAM, 46 com. and analog interfaces, SMPS Table 1. STM32H7A3xI/G features and peripheral counts, the STM32H7A3VIH support only OCTOSPI interface.

 

Screenshot 2026-03-05 121922.png

If you need to use two QuadSPIs memories you can choose a device that supports two quad from those listed in table1. 

 

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

3 REPLIES 3
KDJEM.1
ST Employee

Hello @amitpramanik and welcome to the community;

 

The STM32H7A3VIH6 device have an OCTOSPI interface. And the OCTOSPI supports the QuadSPI memories as mentioned in Overall FAQs for QUADSPI/OCTOSPI/HSPI/XSPI - STMicroelectronics Community

 

You can used the OSPI drivers to configure QuadSPI memories.

According to the Datasheet - STM32H7A3xI/G - 32-bit Arm® Cortex®-M7 280 MHz MCUs, up to 2-Mbyte Flash memory, 1.4-Mbyte RAM, 46 com. and analog interfaces, SMPS Table 1. STM32H7A3xI/G features and peripheral counts, the STM32H7A3VIH support only OCTOSPI interface.

 

Screenshot 2026-03-05 121922.png

If you need to use two QuadSPIs memories you can choose a device that supports two quad from those listed in table1. 

 

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.

amitpramanik
Associate

Hello @KDJEM.1 

Thanks for your Kind response.
We will look on it.
One more query Can we access the both external flash simultaneously based on flashid?

KDJEM.1
ST Employee

Hello @amitpramanik ,

 

First of all thank you for your contribution in STCommunity.

I think that the initial question is already answered, if yes, please click on Accept as Solution on the reply which answered your request.  

For the second question "Can we access the both external flash simultaneously based on flashid?", could you please start a new post with more explanation and details.  

 

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.