Documentation

Espressif USB Host

USB Host MSC (Mass Storage Class) Driver

USB Mass Storage Class example

Espressif sample project

ESP-IDF sample project > USB > host > msc

You can use this to prove your hardware works with the USB memory stick.

Adding USB MSC to an existing project

Adding the component

See https://components.espressif.com/components/espressif/usb_host_msc and look for this section: “To add this component to your project, run:”
Enter the command shown in your VS Code TERMINAL window. E.g. idf.py add-dependency “espressif/usb_host_msc^1.0.3”
(You may need to use CTRL+] to quit the current TERMINAL window function first and get its command prompt to appear).

Adding REQUIRES list

Look in the sample project CMakeLists.txt file, does it have a REQUIRES section like the below?

	REQUIRES Usb vfs )

You’ll need to add those requires to your project. Note that doing this will mean you also need to add REQUIRES for standard library items you are using too – see here.

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

Your email address will not be published. Required fields are marked *