SAMV71 Xplained Ultra Software Package 1.5

USB Host HID + MSD Example

Purpose

This application shows how to implement a USB host compound mass storage & HID mouse on SAM V71 Xplained Ultra board.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

Connect the board to a U-Disk (FAT/FAT32 are supported). This example will creates a file "SAMx7_USBHostTest.txt" on all present U-disks. Connect the HID mouse device to board. This example will display events of the mouse.

Usage

  1. Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Connect the U-disk/USB mouse to SAM V71 Xplained Ultra board or SAME70 Xplained board with the OTG wire.
  4. Start the application. In the terminal window, the following text should appear (values depend on the board and chip used):
          -- USB Host Mass Storage Example xxx --
          -- xxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. LED0 is on when a device is connected and blinks with different speed when the device is enumerated and USB is in idle mode.
  6. LED1 is on when a read or write access is on going or the mouse moves.
  7. In addition, a file "SAMx7_USBHostTest.txt" with the text "Test:- SAMV7/E7 USB Host MSC" is created in the U-disk.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines