The project implements communication with the on-board QSPI flash on EK-RA6M5 in 2 different modes: extended SPI mode and QPI mode.
The QSPI flash chip is Macronix 256 Mb (32 MB) serial flash Quad-SPI memory (MX25L25645G)
https://www.mxic.com.tw/Lists/Datasheet/Attachments/8906/MX25L25645G, %203V, %20256Mb, %20v2.0.pdf
The FSP module used on this project is r_qspi:
https://renesas.github.io/fsp/group___q_s_p_i.html
The code has the following functionality:
1st part (Extended SPI mode):
1) Initialize the QSPI peripheral of RA6M5
2) Send the write enable command to the QSPI
3) Write status register to set the QE bit
4) Erase 1st sector of QSPI
5) Program some data in QSPI
6) Verify the written data during debugging with memory viewer
2nd part (QPI mode):
1) Send the write enable command to the QSPI
2) Write status register to set the QE bit
3) Enable QPI mode on QSPI flash
4) Change the protocol on the QSPI driver of RA6M5
5) Erase 1st sector of QSPI
6) Program some data in QSPI
7) Reset QPI mode after exiting
STEPS to run the project:
1) Import the attached project into e2studio workspace.
2) Build and debug (download) the project on e2studio




Comments