zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.11k stars 6.2k forks source link

ESP32S2/S3: USB support request #46044

Open enthunilu opened 2 years ago

enthunilu commented 2 years ago

Is your enhancement proposal related to a problem? Please describe. I was trying to build webusb sample code for my esp32 dev kit. https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/subsys/usb/webusb

I was using below command, west build -p auto -b esp_wrover_kit samples/subsys/usb/webusb

while execution I am getting linking error for usb API's as mentioned in below ticket https://github.com/zephyrproject-rtos/zephyr/issues/45933

Steps:

Open command prompt Go to zephyr directory execute: west build -p auto -b esp_wrover_kit samples/subsys/usb/webusb Check logs on console

Describe the solution you'd like USB support should be there for ESP32 device.

Describe alternatives you've considered I am unable to find any alternative at this moment.

sylvioalves commented 2 years ago

@enthunilu This sample requires some USB support to work. However, there is no support for ESP32. In fact, ESP32 has no USB port. So you would need to work with ESP32SS/S3/C3 when/if USB support is implemented.

sylvioalves commented 2 years ago

Sorry, I should not have closed this. But it might be good to update issue title to meet a proper SoC as commented previously.

rftafas commented 2 years ago

Just to note that ESP32-C3 contains only an USB to Serial converter. It is not a general USB peripheral/host controller and the RTOS running on C3 should expect it as another serial channel.

ddavidebor commented 3 months ago

+1 from me: please add USB support to Zephyr (new USB Stack) in particular regarding USB HS support on ESP32-P4