host_msd_command
Overview
This Host MSD example supports the UFI and SCSI U-disk device.
The application prints the attached device information when the U-disk device is attached.
The application executes UFI commands to test the attached device.
System Requirement
Hardware requirements
Mini/micro USB cable
USB A to micro AB cable
Hardware (Tower module/base board, and so on) for a specific device
Personal Computer (PC)
Software requirements
The project path is:
<MCUXpresso_SDK_Install>/boards//usb_examples/usb_host_msd_command/ / .
The
is Bare Metal or FreeRTOS OS.
Getting Started
Hardware Settings
Set the hardware jumpers (Tower system/base module) to default settings.
Prepare the example
Download the program to the target board.
Power off the target board and power on again.
Connect devices to the board.
For detailed instructions, see the appropriate board User’s Guide.
Run the example
Connect the board UART to the PC and open the COM port in a terminal tool.
Make sure to use a USB HUB or an adapter with OTG functionality firstly. Plug in the U-disk device to the board. The attached information prints out in the terminal.
The test information prints in the terminal, “success” prints when one command succeeds and “fail” prints when one command fails. The test completes when there is a command fail or all the tests are done.
The following figure is an example for attaching one U-disk device.To test throughput, set the MSD_THROUGHPUT_TEST_ENABLE to (1) in te file host_msd_command.h. An additional 64 K RAM is required to test the throughput. The macro is only supported on the TWR-K65F180M Tower System module and IAR.
The following figure is a throughput test example for attaching one U-disk device.
Throughput test only supports the TWR-K65F180M Tower System module.
Supported Boards
MIMXRT1170-EVKB
EVK-MIMXRT1064
MIMXRT685-AUD-EVK
MIMXRT1060-EVKB
EVK-MIMXRT1010
MIMXRT1040-EVK
FRDM-MCXN947
MIMXRT1024-EVK
LPCXpresso55S36
MIMXRT1060-EVKC
MIMXRT1160-EVK
MIMXRT1180-EVK
EVK-MIMXRT1020
MIMXRT700-EVK
EVK-MIMXRT595
EVK-MIMXRT685
EVKB-IMXRT1050
RD-RW612-BGA
EVK-MIMXRT1015
FRDM-MCXN236
FRDM-RW612