chegewara / EspTinyUSB

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

HUB: Short device descriptor transfer failed #56

Open kdg3737 opened 2 years ago

kdg3737 commented 2 years ago

Hi,

I was trying your USB host example but my ESP32S2 is crashing:

ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0xc (RTC_SW_CPU_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x40026870
SPIWP:0xee
mode:DIO, clock div:1
load:0x3ffe6100,len:0x498
load:0x4004c000,len:0xa88
load:0x40050000,len:0x25a8
entry 0x4004c19c
E (3251) HUB: Short device descriptor transfer failed
ESP_ERROR_CHECK failed: esp_err_t 0x103 (ESP_ERR_INVALID_STATE) at 0x4002c884
file: "IDF/components/usb/hub.c" line 450
func: enum_stage_cleanup_failed
expression: hcd_pipe_command(p_hub_driver_obj->single_thread.enum_dflt_pipe_hdl, HCD_PIPE_CMD_HALT)

abort() was called at PC 0x4002c887 on core 0

Backtrace:0x40026aea:0x3ffdc8e00x4002c891:0x3ffdc900 0x40031c35:0x3ffdc920 0x4002c887:0x3ffdc9a0 0x400bb44e:0x3ffdc9c0 0x400b7b8d:0x3ffdca00 0x4008350e:0x3ffdca20

I'm using the Arduino IDE with V2.0.1-RC1 boards installed with the boards manager.

I lost my OTA because of this so I can't try anything for the next couple of hours :(

Any ideas?

chegewara commented 2 years ago

Sorry, but i dont know the reason. Its some check in esp-idf host component with assert.