Description
Graph
usb-device-massstorage-project
Purpose
The USB Massstorage Project will help you to get familiar with the USB Device Port(UDP) on AT91SAM microcontrollers. Also it can help you to be familiar with the USB Framework that is used for rapid development of USB-compliant class
drivers such as USB Mass Storage class (MSD).
You can find following information depends on your needs:
- Sample usage of USB MSD driver.
- USB MSD driver development based on the AT91 USB Framework.
- USB enumerate sequence, the standard and class-specific descriptors and requests handling.
- The initialize sequence and usage of UDP interface.
See
- memories: Storage Media interface for MSD
- usb: USB Framework, USB MSD driver and UDP interface driver
Requirements
This package can be used with all Atmel evaluation kits that have both UDP interface and SDRAM or internal Flash.
The current supported board list:
- at91sam7s-ek (exclude at91sam7s32)
- at91sam7x-ek
- at91sam7xc-ek
- at91sam7a3-ek
- at91sam7se-ek
- at91sam9260-ek
- at91sam9263-ek
Description
When an EK running this program connected to a host (PC for example), with USB cable, the EK appears as a USB Disk for the host. Then the host can format/read/write on the disk.
If there is SDRAM on the EK, the disk can be up to 10M so that read/write speed can be tested.
If there is no SDRAM but only internal
flash, the disk is about 30K and only small file can be tested.
Usage
- Build the program 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 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.
- In the terminal window, the following text should appear:
-- USB Device Mass Storage Project xxx --
-- AT91xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --
|
- When connecting USB cable to windows, the LED blinks, and the host reports a new USB device attachment and Disk installation. . Then new "USB Mass Storage Device" and "ATMEL Mass Storage MSD USB Device" and "Generic volume" appear in hardware device list.
- You can find the new disk on host, and to create/write file to it.
Source
The documentation for this Directory was generated from the following files:
main.c