Description
Graph
usb-device-composite-cdcmsd-project
Purpose
The USB COMPOSITE Project will help you to get familiar with the USB Device Port(UDP)interface and also some of the other interfaces in 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 Communication Device class (CDC), and how to combine two USB functions to a single
composite device (such as CDC + MSD).
You can find following information depends on your needs:
- Sample usage of USB Device Framework.
- USB COMPOSITE device and functions driver development based on the AT91 USB Device Framework and other re-usable class driver code.
- USB enumerate sequence, the standard and class-specific descriptors and requests handling.
- The initialize sequence and usage of UDP interface.
See
- pio: Pin configurations and peripheral configure.
- memories: Storage Media interface for MSD
- usb: USB Device Framework, USB CDC driver and UDP interface driver
- projects:
Requirements
This package can be used with some of Atmel evaluation kits that have UDP interface, depending on the functions included.
The current supported board list:
- at91sam7s-ek (exclude at91sam7s32)
- at91sam7x-ek
- at91sam7xc-ek
- at91sam7a3-ek
- at91sam7se-ek
- at91sam9260-ek
- at91sam9263-ek
Windows Driver Update
The
composite device is generally supported by Microsoft windows, but some patches are needed for muti-interface functions such as CDC & Audio. The example
composite devices are tested under windows XP (SP3). For CDC serial port, additional windows driver file (
CompositeCDCSerial.inf) can be found at
at91lib.
The following is alternate update to fix the
composite device support on windows XP:
Install Windows Hot Fixes
Two hot fixes are necessary for window to recognize the
composite device correctly:
Description
When an EK running this program connected to a host (PC for example), with USB cable, host will notice the attachment of a USB device. No device driver offered for the device now.
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 Composite Device 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.
- For the windows driver installation and the test functions, please refer to "USB CDC serial converter" & "USB Device Mass Storage Project".
- You can use the inf file at91lib\usb\device\composite\drv\CompositeCDCSerial.inf to install the CDC serial port.
Source
The documentation for this Directory was generated from the following files:
main.c