Jump to main content

##

# 1.35 SST26 SQI Flash Driver - Flash Read Write in SPI Mode

This example application shows how to use the SST26 SQI flash driver to perform block operations on the On-Board SST26 Flash memory in SPI mode.

## Description

This application uses the SST26 driver to Erase/Write/Read on the On-Board SST26 Flash memory using the SQI peripheral library configured in SPI mode.

The application consists of APP_SST26_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/sst26/sst26_spi_read_write/firmware.

To build the application, refer to the following table and open the project using its IDE.

Project Name | Description
--- | ---
sam_e54_xpro.X | MPLABX 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

Note: This demo requires newer revision of SAM E54 Xplained Pro Evaluation Kit that replaced N25Q256A QSPI Flash with SST26 QSPI Flash memory

## Running the Application

1. Build and program the application using its IDE
2. Reset the device by power cycle
3. LED is turned ON when the data read from SST26 flash matches with the data written in it

Refer to the following table for LED name:

Board | LED Name
--- | ---
SAM E54 Xplained Pro Evaluation Kit | LED0