Step 2: Configure the USB Library
Add a USB Device Layer stack into your project from the Available Components window.
Expand the tree Libraries > USB > Device Stack and select the USB Device Layer.
At this point, you will be asked to auto-activate some components required by the system. Select Yes for the USB High Speed Driver.
Your Project Graph should now resemble the screen in the accompanying image.
Attach an MSD Function Driver to your SD card driver.
Right click on the green DRV_MEDIA attachment box. From the Satisfiers list, select MSD Function Driver.
Your Project Graph should now resemble the screen in the accompanying image.
Configure the USB device layer.
You can now click on the USB device layer component box to display the configuration options available for this component. Set Product ID Selection to msd_sdcard_demo2.
Configure the SD Card SPI Instance 0.
Click on SD Card (SPI) Instance 0 to display the configuration options.
Increase the Number of Clients value to 2.
Save the MHC configuration.