📄 usb-device-massstorage-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 - USB Device Mass Storage 1.4</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<h1>USB Device Mass Storage Project 1.4</h1>
<div id="breadcrumb">
<a href="../index.html">Main</a> >
<a href="usb-framework.html">USB Framework</a> >
Mass Storage
</div>
<h2>Purpose</h2>
<p>
This application creates an USB Mass Storage drive on a host computer. The drive
is created from the internal Flash or external SDRAM memory of the evaluation kit.
</p>
<div class="requirements">
<h2>Hardware Requirements</h2>
<p>
This package can be used with the following Atmel evaluation boards:
<ul>
<li>AT91SAM7S-EK (except AT91SAM7S32)</li>
<li>AT91SAM7X-EK</li>
<li>AT91SAM7SE-EK</li>
<li>AT91SAM9260-EK</li>
<li>AT91SAM9261-EK</li>
<li>AT91SAM9263-EK</li>
<li>AT91SAM9RL-EK</li>
<li>AT91SAM9XE-EK</li>
<li>AT91SAM9G20-EK</li>
<li>AT91CAP9-DK</li>
<li>AT91CAP9-STK</li>
</ul>
</p>
</div>
<h2>Description</h2>
<p>
This examples enumerates as a Mass Storage device on the host computer side.
This effectively creates a new hard-drive from the PC point of view, enabling
seamless file transfer to and from the memory.
</p>
<p>
One or more drives are created, depending on the evaluation kit and microcontroller
capabilities. Currently, drives can be created from the following memories:
<ul>
<li>Internal Flash</li>
<li>External SDRAM</li>
</ul>
</p>
<p>
Each memory supported by the EK will have its own drive. Be careful that it may
not be possible to run the application from a memory which is being used as a drive,
unless the program is modified to account for that.
</p>
<p>
Depending on memory types, the content of each drive may or may not be carried
out after power disconnection. For example, SDRAM cannot retain data without
power, so a SDRAM hard-drive will lose its content upon power down.
</p>
<p class="warning">
WARNING: on the SAM7X/XC evaluation kit, the project only works in internal flash.
</p>
<h2>Usage</h2>
<ol>
<li>
Build the application.
</li>
<li>
Optionally, connect the DBGU port of the evaluation board to the computer
and open it in a terminal. Debug information generated by the application
will be visibled that way.
</li>
<ul>
<li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
</ul>
<li>
Download and run the program inside the evaluation board. Remember that the
application will not work properly if run in a memory used to create a drive. 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>In the terminal window, the following text should appear:</li>
<blockquote>
<code>
-- USB Device Mass Storage Project 1.4 --
</code>
</blockquote>
<li>
Connect the USB cable to the board. Traces should start to
appear on the terminal. If this is the first time the device is connected to
the PC, the operating system may take some time to install it.
</li>
<li>
Once the device is connected and configured, new drives should appear on the
host machine. They will have to be formatted when used for the first time.
</li>
</ol>
<h6>Atmel Corporation ©2008</h6>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -