SAMV71 Xplained Ultra Software Package 1.3

USB Host Mass Storage Example

Purpose

This application shows how to implement a USB host mass storage 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 "SAMv7_USBHostTest.txt" on all present U-disks.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rates
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Connect the U-disk to SAM V71 Xplained Ultra 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. LED1 is on when a read or write access is on going. At last, LED1 is on when a LUN test is successful and blinks when failed In addition, a file "SAMv7_USBHostTest.txt" with the text "Test:- SAMV7 USB Host MSC" is created in the U-disk.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines