Purpose
This example demonstrates how to setup the QSPI in order to initialize, read and write a serial dataflash.
Requirements
This package can be used with SAM V71 Xplained Ultra board.
Description
The demonstration program tests the serial dataflash present on the evaluation kit by erasing and writing each one of its pages. It also gives read/write bandwidth by the test.
Usage
- Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
Optionally, on the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 8 bits of data
- No parity
- 1 stop bit
- No flow control
Start the application.
- Upon startup, the application will output the following lines on the terminal window:
-- QSPI Serialflash Example xxx --
-- SAMxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
QSPI drivers initialized
- The program will connect to the serial firmware dataflash through the QSPI and start sending commands to it. It will perform the following:
- Read the JEDEC identifier of the device to auto detect it The next line should indicate if the serial dataflash has been correctly identified.
References