This program tests the dataflash present on the evaluation kit by erasing and writing each one of its pages.
This package can be used with any of the Atmel evaluation kit.
An external AT26 serial dataflash must be connected to the SPI bus of the microcontroller for this example to work properly. A convenient solution is to use an external PCB with the SD card form factor: that way, it can be directly plugged into the SD card port of the evaluation kit (since SPI pins are multiplexed with MCI pins).
The photo below show a possible implementation of that solution, as done by Atmel
(download the schematic):
Upon startup, the program will connect to the serial firmware dataflash through the SPI and start sending commands to it. It will perform the following:
Byte 0 = 00000001
Byte 1 = 00000010
Byte 2 = 00000100
........
-- Basic Serial Firmware Dataflash Project 1.4 --
-I- SPI and At26 initialized
-I- AT26DF321 Serial Flash detected