2026-03-04 11:17 PM - edited 2026-03-05 2:48 AM
Hello ,
I want to Access QSPI drivers in STM32H7A3VIH6. However in Cubemx there is only option of OCTOSPI1 and OCTASPI.
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.
Solved! Go to Solution.
2026-03-05 3:23 AM
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.
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.
2026-03-05 3:23 AM
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.
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.
2026-03-05 3:37 AM - edited 2026-03-05 3:37 AM
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?
2026-03-05 3:56 AM - edited 2026-03-05 3:57 AM
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.