2024-07-18 12:22 AM
I need to read/write data into the external Serial NOR Flash (MX25U25645GMI00) via Quad SPI of STM32L412RB board using STM32CubeIDE.
2024-07-19 01:46 AM
Hello @VSASI1 and welcome to the Community :),
Are you able to write/read data in Indirect Mode?
Could you please take a look at this example "QSPI_ReadWrite_IT" may help you.
Also, I recommend you to refer to these references How to configure OctoSPI and QuadSPI with an STM32? and AN4760 and check your QuadSPI configuration
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.
2024-07-19 06:29 AM
Going to be materially very similar to all other QSPI implementations
Will need to use the 4-byte / 32-bit addressing for a memory >16MB (128Mb)
Writes would be aligned 256-byte pages
2-line should be a matter of the right commands and bit width settings for each of the appropriate phases (ie cmd,address,alt,data..)
4-line likely needing some interaction with status register to switch into the 4-pin "QE" mode mapping the usual WP/HOLD pins into data operation.
https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Drivers/BSP/Components/mx25r6435f
The QSPI peripheral is present in several other STM32 families, the Cube examples from those families and boards should be highly portable.
2024-07-19 06:32 AM
Provide the specific pin utilization for your board implementation