Purpose
This example shows how to implement a USB host CDC on SAMV7/E7 Microcontrollers.
Requirements
This package can be used with SAMV71 Xplained Ultra board or SAME70 Xplained 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.
Usage
- Build the program and download it inside the board. Please refer to the Getting Started with SAM V71/E70 Microcontrollers.pdf
- 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
- Connect the HID mouse device to SAM V71 Xplained Ultra board or SAME70 Xplained board with the OTG wire.
- 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 --
- 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 "SAMx7_USBHostTest.txt" with the text "Test:- SAMV7/E7 USB Host MSC" is created in the U-disk.
References