- I (31) boot: ESP-IDF v5.3-dirty 2nd stage bootloader
- I (31) boot: compile time Aug 27 2024 15:00:45
- I (31) boot: Multicore bootloader
- I (35) boot: chip revision: v0.1
- I (38) boot.esp32s3: Boot SPI Speed : 80MHz
- I (43) boot.esp32s3: SPI Mode : DIO
- I (48) boot.esp32s3: SPI Flash Size : 2MB
- I (53) boot: Enabling RNG early entropy source...
- I (58) boot: Partition Table:
- I (62) boot: ## Label Usage Type ST Offset Length
- I (69) boot: 0 nvs WiFi data 01 02 00009000 00006000
- I (76) boot: 1 phy_init RF data 01 01 0000f000 00001000
- I (84) boot: 2 factory factory app 00 00 00010000 00100000
- I (91) boot: End of partition table
- I (96) esp_image: segment 0: paddr=00010020 vaddr=3c0a0020 size=257d4h (153556) map
- I (132) esp_image: segment 1: paddr=000357fc vaddr=3fc9ae00 size=04f98h ( 20376) load
- I (136) esp_image: segment 2: paddr=0003a79c vaddr=40374000 size=0587ch ( 22652) load
- I (142) esp_image: segment 3: paddr=00040020 vaddr=42000020 size=9a59ch (632220) map
- I (260) esp_image: segment 4: paddr=000da5c4 vaddr=4037987c size=11488h ( 70792) load
- I (285) boot: Loaded app from partition at offset 0x10000
- I (285) boot: Disabling RNG early entropy source...
- I (297) esp_psram: Found 2MB PSRAM device
- I (297) esp_psram: Speed: 40MHz
- I (297) cpu_start: Multicore app
- I (717) esp_psram: SPI SRAM memory test OK
- I (726) cpu_start: Pro cpu start user code
- I (726) cpu_start: cpu freq: 240000000 Hz
- I (726) app_init: Application information:
- I (729) app_init: Project name: usb-uvc
- I (734) app_init: App version: 1
- I (739) app_init: Compile time: Aug 28 2024 18:57:16
- I (745) app_init: ELF file SHA256: 5a8b9cb46...
- I (750) app_init: ESP-IDF: v5.3-dirty
- I (755) efuse_init: Min chip rev: v0.0
- I (760) efuse_init: Max chip rev: v0.99
- I (765) efuse_init: Chip rev: v0.1
- I (770) heap_init: Initializing. RAM available for dynamic allocation:
- I (777) heap_init: At 3FCA4188 len 00045588 (277 KiB): RAM
- I (783) heap_init: At 3FCE9710 len 00005724 (21 KiB): RAM
- I (789) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
- I (795) heap_init: At 600FE100 len 00001EE8 (7 KiB): RTCRAM
- I (802) esp_psram: Adding pool of 2048K of PSRAM memory to heap allocator
- I (810) spi_flash: detected chip: generic
- I (813) spi_flash: flash io: dio
- W (817) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
- I (831) sleep: Configure to isolate all GPIO pins in sleep state
- I (837) sleep: Enable automatic switching of GPIO sleep configuration
- I (845) main_task: Started on CPU0
- I (855) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
- I (855) main_task: Calling app_main()
- I (865) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
- W (875) USB HOST: User callback to set USB device configuration is enabled, but not used
- I (915) example_connect: Start example_connect.
- I (915) pp: pp rom version: e7ae62f
- I (915) net80211: net80211 rom version: e7ae62f
- I (935) wifi:wifi driver task: 3fcbaec4, prio:23, stack:6656, core=0
- I (935) wifi:wifi firmware version: 0caa81945
- I (935) wifi:wifi certification version: v7.0
- I (935) wifi:config NVS flash: enabled
- I (935) wifi:config nano formating: disabled
- I (945) wifi:Init data frame dynamic rx buffer num: 8
- I (945) wifi:Init static rx mgmt buffer num: 5
- I (955) wifi:Init management short buffer num: 32
- I (955) wifi:Init static tx buffer num: 8
- I (955) wifi:Init tx cache buffer num: 32
- I (965) wifi:Init static tx FG buffer num: 2
- I (965) wifi:Init static rx buffer size: 1600
- I (975) wifi:Init static rx buffer num: 8
- I (975) wifi:Init dynamic rx buffer num: 8
- I (975) wifi_init: rx ba win: 8
- I (985) wifi_init: accept mbox: 6
- I (985) wifi_init: tcpip mbox: 32
- I (995) wifi_init: udp mbox: 6
- I (995) wifi_init: tcp mbox: 6
- I (995) wifi_init: tcp tx win: 15000
- I (1005) wifi_init: tcp rx win: 5760
- I (1005) wifi_init: tcp mss: 1440
- I (1015) wifi_init: WiFi IRAM OP enabled
- I (1015) wifi_init: WiFi RX IRAM OP enabled
- I (1025) phy_init: phy_version 680,a6008b2,Jun 4 2024,16:41:10
- I (1055) wifi:mode : sta (f0:f5:bd:6e:6f:d8)
- I (1055) wifi:enable tsf
- I (1065) example_connect: Connecting to <wifi_name>...
- I (1065) example_connect: Waiting for IP(s)
- E (2415) HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC
- E (2415) HUB: Stage failed: CHECK_SHORT_DEV_DESC
- I (3815) wifi:new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1, snd_ch_cfg:0x0
- I (3815) wifi:state: init -> auth (0xb0)
- I (3825) wifi:state: auth -> assoc (0x0)
- I (3825) wifi:state: assoc -> run (0x10)
- I (3845) wifi:connected with <wifi_name>, aid = 6, channel 6, BW20, bssid = e4:55:a8:28:f4:1e
- I (3845) wifi:security: WPA2-PSK, phy: bgn, rssi: -59
- I (3845) wifi:pm start, type: 1
- I (3845) wifi:dp: 1, bi: 102400, li: 3, scale listen interval from 307200 us to 307200 us
- I (3855) wifi:set rx beacon pti, rx_bcn_pti: 0, bcn_timeout: 25000, mt_pti: 0, mt_time: 10000
- I (3875) wifi:<ba-add>idx:0 (ifx:0, e4:55:a8:28:f4:1e), tid:0, ssn:0, winSize:64
- I (3915) wifi:AP's beacon interval = 102400 us, DTIM period = 1
- I (4865) esp_netif_handlers: example_netif_sta ip: 192.168.11.132, mask: 255.255.252.0, gw: 192.168.8.1
- I (4865) example_connect: Got IPv4 event: Interface "example_netif_sta" address: 192.168.11.132
- I (4915) example_connect: Got IPv6 event: Interface "example_netif_sta" address: fe80:0000:0000:0000:f2f5:bdff:fe6e:6fd8, type: ESP_IP6_ADDR_IS_LINK_LOCAL
HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC E ;HUB: Stage failed: CHECK_SHORT_DEV_DESC error in esp32S3
HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC E ;HUB: Stage failed: CHECK_SHORT_DEV_DESC error in esp32S3
I was trying out the uvc example project by connecting the webcam to a custom PCB with the ESP32S3 chip. I used a USB breakout board to connect the webcam to the ESP32S3. I connected D- to GPIO19 and D+ to GPIO20. I connected VBUS to 5V on the breakout board and GND pin to ESP's GND. When I connected the webcam to the ESP, I am getting bad transfer status 1. However, if I connect the webcam to the microusb port of ESP32S3 DevKit C, I am not facing this issue. I am attaching the logs of the code where I am facing this issue.
I have set all the USB-OTG menuconfig parameters to 500 ms as well. Is this a hardware issue or do I have to make some changes in the code?
Re: HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC E ;HUB: Stage failed: CHECK_SHORT_DEV_DESC error in esp32S3
Can you post sdkconfig? That may help to spot problem.
In general uvc descriptors are very long, even up to 1500 bytes, so please to compare with uvc example code.
In general uvc descriptors are very long, even up to 1500 bytes, so please to compare with uvc example code.
Re: HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC E ;HUB: Stage failed: CHECK_SHORT_DEV_DESC error in esp32S3
Here is the sdkconfig file. I will look into the uvc parameters, but if it works for the devkit, then it should work for the custom pcb as well?
- Attachments
-
- sdkconfig.txt
- (61.44 KiB) Downloaded 63 times
Re: HUB: Bad transfer status 1: CHECK_SHORT_DEV_DESC E ;HUB: Stage failed: CHECK_SHORT_DEV_DESC error in esp32S3
Yeah, if its the same code then its suggesting hardware problem.
I wanted to check this param, just to make sure
I wanted to check this param, just to make sure
Sometimes it may be issue with some USB devices, when descriptor is 255 or 256 bytes long, i dont remember. But again, if you are testing with the same firmware and the same camera, then its not the case.CONFIG_USB_HOST_CONTROL_TRANSFER_MAX_SIZE
Who is online
Users browsing this forum: No registered users and 130 guests