?? basic-dataflash-project.html
字號:
?<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Atmel Corporation - Basic Dataflash 1.4</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>Basic Dataflash Project 1.4</h1>
<div id="breadcrumb">
<a href="../index.html">Main</a> >
<a href="examples.html">Examples</a> >
Dataflash
</div>
<h2>Purpose</h2>
<p>
This program tests the dataflash present on the evaluation kit by erasing and
writing each one of its pages.
</p>
<div class="requirements">
<h2>Hardware Requirements</h2>
<p>
This package can be used with any of the Atmel evaluation kit.
</p>
</div>
<h2>Description</h2>
<p>
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:
<ul>
<li>Erase page and check that page data is all 0xFF</li>
<li>Write page, read back the page and compare.</li>
</ul>
The JEDEC identifier of the device is also output if the command is supported.
</p>
<h2>Usage</h2>
<ol>
<li>
Build the binary file and download it inside the evaluation board. Please refer
to the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6132.pdf">SAM-BA User Guide</a>,
the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6310.pdf">GNU-Based Software Development</a>
application note or to the <a href="http://www.iar.se/website1/1.0.1.0/78/1/index.php?">IAR EWARM User Guide</a>,
depending on your chosen solution.
</li>
<li>
On the computer, open the DBGU port with a terminal application (e.g. HyperTerminal
on Microsoft Windows).
</li>
<ul>
<li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
</ul>
<li>
Run the application.
</li>
<li>
Upon startup, the application will output the following lines on the DBGU:
<blockquote>
<code>
-- Basic Dataflash Project 1.4 --<br />
-I- Initializing the SPI and AT45 drivers<br />
-I- At45 enabled<br />
-I- SPI interrupt enabled<br />
-I- Waiting for a dataflash to be connected ...<br />
</code>
</blockquote>
</li>
<li>
As soon as a dataflash is connected, the tests will start. Eventually, the
test result (pass or fail) will be output on the DBGU.
</li>
</ol>
<h6>Atmel Corporation ?2008</h6>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -