cancel
Showing results for 
Search instead for 
Did you mean: 

Serial NOR Flash read/write operation

VSASI1
Associate

I need to read/write data into the external Serial NOR Flash (MX25U25645GMI00) via Quad SPI of STM32L412RB board using STM32CubeIDE.

  1. I was able to get the Device ID of the MX25U25645GMI00.
  2. I am unable to write/read data into the MX25U25645GMI0 in Auto Polling Mode.
  3. I need support in writing data using 2 or 4 I/O lines (I was able to pass the Write Enable Command and Chip Erase Command successfully).
  4. I need support in reading data using 4 I/O lines (But I get 255 or 136 dec in all the bytes of receive buffer).
3 REPLIES 3
KDJEM.1
ST Employee

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.

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

https://github.com/STMicroelectronics/32l496gdiscovery-bsp/blob/8ae27b548258d2d12109a4fd65e791f21131caf6/stm32l496g_discovery_qspi.c

The QSPI peripheral is present in several other STM32 families, the Cube examples from those families and boards should be highly portable.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Provide the specific pin utilization for your board implementation

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..