Basic Dataflash Project 1.4
Purpose
This program tests the dataflash present on the evaluation kit by erasing and
writing each one of its pages.
Hardware Requirements
This package can be used with any of the Atmel evaluation kit.
Description
When launched, the example will wait for a dataflash to be connected, in case
a dataflash card reader is used. Once the dataflash is detected, the application
performs two checks on each page:
- Erase page and check that page data is all 0xFF
- Write page, read back the page and compare.
The JEDEC identifier of the device is also output if the command is supported.
Usage
-
Build the binary file and download it inside the evaluation board. Please refer
to the SAM-BA User Guide,
the GNU-Based Software Development
application note or to the IAR EWARM User Guide,
depending on your chosen solution.
-
On the computer, open the DBGU port with a terminal application (e.g. HyperTerminal
on Microsoft Windows).
- Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.
-
Run the application.
-
Upon startup, the application will output the following lines on the DBGU:
-- Basic Dataflash Project 1.4 --
-I- Initializing the SPI and AT45 drivers
-I- At45 enabled
-I- SPI interrupt enabled
-I- Waiting for a dataflash to be connected ...
-
As soon as a dataflash is connected, the tests will start. Eventually, the
test result (pass or fail) will be output on the DBGU.
Atmel Corporation ©2008