SQI flash MX25L driver - MX25L SQI read write
This example application shows how to use the MX25L QSPI flash driver to perform block operations on the on-board MX25L QSPI Flash memory.
Description
This application uses the MX25L QSPI flash driver to Erase/Write/Read on the On-Board MX25L QSPI Flash memory using the QSPI peripheral library.The application consists of APP_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. This content can also be downloaded using content manager by following these instructions.
Path of the application within the repository is apps/driver/sqi_flash/mx25l/mx25l_flash_read_write/firmware .
To build the application, refer to the following table and open the project using its IDE.
Project Name | Description |
---|---|
sam_a5d2_xult.X | MPLABX project for SAMA5D2 Xplained Ultra Evaluation Kit |
Setting up AT91Bootstrap loader
To load the application binary onto the target device, we need to use at91bootstrap loader. Refer to the at91bootstrap loader documentation for details on how to configure, build and run bootstrap loader project and use it to bootstrap the application binaries.
Setting up the hardware
The following table shows the target hardware for the application projects.
Project Name | Board |
---|---|
sam_a5d2_xult.X | SAMA5D2 Xplained Ultra Evaluation Kit |
Setting up SAMA5D2 Xplained Ultra Evaluation Kit
Setting up the board
- Short jumper JP2 (DEBUG_DIS)
- Connect the Debug USB port on the board to the computer using a micro USB cable
- Make sure that the jumper JP9 is removed (jumper pins are not shorted)
Running the Application
- Build the application using its IDE
- LED indicates the success or failure.
- LED toggles with 1 second delay if the demo executes successfully
- LED turns on and stays on if the demo executes with error
Refer to the following table for LED name:
Board | LED Name |
---|---|
SAMA5D2 Xplained Ultra Evaluation Kit | RGB_LED(Green) |