2021-08-06 06:35 AM
Hi everyone!
I'm trying to use STM32H723 in QUAD SPI mode.
CubeMX does project generation but when I trying to compile project at Keil an error appears about undeclared "GPIO_AF4_OCTOSPIM".
If I changed it to GPIO_AF4_OCTOSPIM_P1 compilation run without errors.
But how I could know that I chose correct define or not?
Other question about commands to work with memory, which HAL command and it what sequence for READ/WRITE/STATUS CHECK in this mode?
I cannot find examples from STM to test and revise my code.
2021-08-06 07:28 AM
GPIO_AF4_* defines evaluate to 4. Use whichever one is defined in your library. Looks like it's GPIO_AF4_OCTOSPIM_P1 in the current library.
There are several OSPI examples in the CubeMX repository. Here is one:
2021-08-06 07:34 AM
I've seen this example. But in my case, it is not informative, since it describes the mode of operation of 8 lines, and I need 4. And I must be sure of the commands that I use.
2021-08-06 08:14 AM
Sounds like a bug in the code generator, about par for the course.
To use QSPI parts on OSPI, you need to specify 4-bit (or 1, 2 as appropriate) for the instruction, address and data widths, and 8-bit for the command size.
Is this a work project?
2021-08-06 08:22 AM
This is a working project in which we are making the migrate from STM32F4 to the more powerful H7 MCU line. Do you have any real experience on this issue?
I am still awaiting a response from the STM team with working examples. When we worked with the STM32F4 MCU, STM provided many examples of how to work with the QSPI.
2021-08-06 08:32 AM
>>Do you have any real experience on this issue?
Got Micron/Winbond QSPI devices running on an H7A3ZI, which is a OCTOSPI platform similar to the H723
In the process of coding an .FLM for Keil
I can free climb..
2021-08-06 08:47 AM
Could you share with community initialization code and read/write code for your platform?
I think it's will be very helpful.
2021-08-11 12:24 AM
please share..
2021-08-13 06:49 AM
Hi @AB.19 ,
Regarding the issue with generated STM32CubeMX code: I let our STM32CubeMX expert @Khouloud ZEMMELI check & confirm it. It will be helpful to precise used version of the tool or share an ioc file.
For the second request about the examples: I suggest you to have a look to the article How to configure OctoSPI and QuadSPI with an STM32? Useful links are there.
-Amel
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.
2021-08-13 06:59 AM
Hello @AB.19 ,
Thanks for your post,
As mentioned by @Amel NASRI , it will be helpful if you provide your ioc file.
Otherwise, I'll check the problem then I'll get back to you.
Thanks, Khouloud