chegewara / EspTinyUSB

ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
MIT License
490 stars 70 forks source link

usb/usb_host.h: No such file or directory #54

Closed Stefankante closed 2 years ago

Stefankante commented 2 years ago

Hi! I have try to test usb host function on new esp32-s2 but the compile failed pointed toward "usb/usb_host.h: No such file or directory" Where I could find that file?

Thanks

chegewara commented 2 years ago

The question is what arduino-esp32 are you using? Its been tested with idf-master branch, but that branch recently has been merged into master, so you have to use master branch. It wont work with any version released in boards manager yet.

Stefankante commented 2 years ago

The question is what arduino-esp32 are you using? Its been tested with idf-master branch, but that branch recently has been merged into master, so you have to use master branch. It wont work with any version released in boards manager yet.

I used Arduino ESP-32 version 2.0.0 which support ESP32-S2. https://github.com/espressif/arduino-esp32

chegewara commented 2 years ago

Yes, it is supporting S2, but USB host was not released in esp-idf at the time when v2.0.0 has been released. At the moment USB host is only supported in arduino-esp32 master branch.

Stefankante commented 2 years ago

Yes, it is supporting S2, but USB host was not released in esp-idf at the time when v2.0.0 has been released. At the moment USB host is only supported in arduino-esp32 master branch.

Can you point the torch for me please? BC what i currently found as master branch is that latest 2.0.0

chegewara commented 2 years ago

Master: https://github.com/espressif/arduino-esp32 v2.0.0: https://github.com/espressif/arduino-esp32/tree/2.0.0

You cant use master if you install with boards manager, you have to install arduino-esp32 manually. There should be instruction how to do it.