
User Guide
GD32VF103T-START
11
At this point, the write/read/formatting operation can be performed as the other mobile devices.
5.5.
USBFS_Host
5.5.1.
MSC
DEMO Purpose
This demo includes the following functions of GD32 MCU:
Learn to use the USBFS as a MSC host
Learn the operation between the MSC host and the Udisk
GD32VF103T-START board integrates the USBFS module, and the module can be used as
a USB device, a USB host or an OTG device. This demo mainly shows how to use the USBFS
as a USB MSC host to communicate with external Udisk.
DEMO Running Result
Jump the JP11 to OTG and the JP10 to Usart. Then insert the OTG cable to the USB port,
download the program <04_USBFS\Host\MSC_Host> to the start board and run.
If an Udisk has been attached, the COM will print "Device connect", indicating that the U disk
is successfully connected.
First pressing the Wakeup key, the COM will print "Read List", indicating that the contents of
the U disk have been read correctly.
Then pressing the Wakeup key again, the COM will print "Write File", indicating that the files
has written to the U disk.
The third press of the Wakeup button, the COM will print "Done", indicating the end of the
MSC host example.
Finally, pull out the U disk, the COM will print "Device disconnect"