1

I have an ESP32-S2-DevKitM-1 which is supposed to able to act as USB HID device.

But whatever I try using either ESP-IDF or Arduino-IDE, I can't get any data from it.

I ran this esp-idf example.

I also ran the arduino example.

I connected GPIO20/19 to D+/D- of a USB cable.

When I plug in that cable, my host computer logs:

usb 1-6: new full-speed USB device number 93 using xhci_hcd
usb 1-6: device descriptor read/64, error -71
usb 1-6: device descriptor read/64, error -71
usb 1-6: new full-speed USB device number 94 using xhci_hcd
usb 1-6: device descriptor read/64, error -71
usb 1-6: device descriptor read/64, error -71
usb usb1-port6: attempt power cycle
usb 1-6: new full-speed USB device number 95 using xhci_hcd
usb 1-6: Device not responding to setup address.
usb 1-6: Device not responding to setup address.
usb 1-6: device not accepting address 95, error -71
usb 1-6: new full-speed USB device number 96 using xhci_hcd
usb 1-6: Device not responding to setup address.
usb 1-6: Device not responding to setup address.
usb 1-6: device not accepting address 96, error -71
usb usb1-port6: unable to enumerate USB device

The esp-idf example fails to send, because tud_mounted() is false, and the arduino-ide example fails on SendReport(): not ready.

How can I get the ESP32-S2 to talk USB with my host computer?

asked Jun 13, 2023 at 16:11

1 Answer 1

-1

This problem went away when I replaced my DIY USB cable connection with an Adafruit USB-C breakout board.

I checked all the connections of my cable, but somehow it would not work, until I replaced it.

answered Jun 20, 2023 at 22:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.