chegewara / esp32-usb-v2

ESP32S2/S3 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
115 stars 13 forks source link

hal/usb_hal.h missing in Arduino #12

Open imakin opened 2 months ago

imakin commented 2 months ago

I tried for ESP32-S2 in linux and got this error. Any clue what is this usb_hal and how to include this?

    src/esp32-usb-v2/src/common/usb_device.cpp:3:10: fatal error: hal/usb_hal.h: No such file or directory
        3 | #include "hal/usb_hal.h"
          |          ^~~~~~~~~~~~~~~
    compilation terminated.

    Used library Version Path
    Wire         2.0.0   /home/user/.arduino15/packages/esp32/hardware/esp32/3.0.0/libraries/Wire

    Used platform Version Path
    esp32:esp32   3.0.0   /home/user/.arduino15/packages/esp32/hardware/esp32/3.0.0
    Error during build: exit status 1
    make: *** [Makefile:23: compile] Error 1

i also tried the EspTinyUSB library and got the same usb_hal error like that.

https://github.com/chegewara/EspTinyUSB/issues/157

the commit when that file was deleted

https://github.com/espressif/esp-idf/commit/e63bfb24f50b5794d6d5c7d371c1c2f06ec18579

chegewara commented 1 month ago

Arduino 3/x is based on esp-idf 5.x, which changed components structure. At the moment i do not have plans to support arduino v3.x for many reasons.