Chapter 4. Software framework
Does the ESP32-S2 support USB HID?
Yes. For the example of USB HID Device, please refer to ESP-IDF Device HID. For the example of
USB HID Host, please refer to ESP-IDF Host HID example.
Why is this error log printed when I am testing the USB Camera + Wi-Fi Transfer example?
E (1437) UVC STREAM: Configuration descriptor larger than control␣
,→transfer max length
This error log is reported because the length of the descriptor sent by the USB Camera is larger than the
default length (256). You can modify the following conguration to 2048 for testing:
Component config > UVC Stream > (2048) Max control transfer data size
(Bytes)
Does ESP32-S3 support USB CDC for printing program log and downloading rmware?
Yes, ESP32-S3 supports printing program log and downloading rmware using USB CDC when the
following conguration option is enabled:
Component config > ESP System Settings > Channel for console output >
USB CDC
Does ESP32-S3 support devices with USB Device being Class 0?
• Yes, please refer to the example esp-idf/components/tinyusb/additions/src/usb_descriptors.c. When class code
== 00H, the class category is specied by the interface.
Can the ESP32-S3’s USB OTG interface be used in both USB Host and USB Device modes?
• The ESP32-S3’s USB OTG interface can not be used as USB Host and USB Device at the same time. However,
it is possible to switch between the USB Host mode and the USB Device mode by software.
• If you need the standard negotiation function of USB OTG, please note that currently ESP32-S3 only supports
this function on the hardware, and does not support it in software protocol.
When testing the esp-idf/examples/peripherals/usb/device/tusb_serial_device example to send data using
TinyUSB, do I have to use the tinyusb_cdcacm_write_ush() function?
To prevent sending FIFO overows, you can use the‘tinyusb_cdcacm_write_ush()’function to ush.
However, a large number of cycles of ushing may fail. So, it is recommended to set it according to the
actual application.
Espressif Systems 86
Submit Document Feedback
Release master