1.28 SFDP Flash Driver - Flash Read Write in SPI Mode
This example application shows how to use the SFDP Flash driver to perform block operations on JEDEC-compliant NOR Flash memory in SPI mode.
Description
This application uses the SFDP driver to Erase/Write/Read on JEDEC-compliant NOR Flash memory using the peripheral library configured in SPI mode.
The application consists of APP_SFDP_Tasks() which is called through SYS_Tasks() routine.
Downloading and Building the Application
To clone or download this application from GitHub, go to the main page of this repository and then click Clone button to clone this repository or download as zip file.
Path of the application within the repository is apps/driver/sfdp/sfdp_spi_read_write.
To build the application, refer to the following table and open the project using its IDE.
| Project Name | Description |
|---|---|
| sam_e54_xpro.X | MPLAB X project for SAM E54 Xplained Pro Evaluation Kit |
Setting Up the Hardware
The following table shows the target hardware for the application projects.
| Project Name | Description |
|---|---|
| sam_e54_xpro.X | SAM E54 Xplained Pro Evaluation Kit |
Setting Up SAM E54 Xplained Pro Evaluation Kit
- Connect the Debug USB port on the board to the computer using a micro USB cable
Running the Application
- Build and program the application using its IDE.
- Reset the device by power cycle.
- LED is turned ON when the data read from JEDEC-compliant NOR Flash matches with the data written in it.
| Board | LED Name |
|---|---|
| SAM E54 Xplained Pro Evaluation Kit | LED0 |
