USB Host not working on "ESP32-S3-USB-OTG Development Board"
Posted: Fri Apr 01, 2022 9:03 am
I bought the ESP32-S3-USB-OTG Development Board specifically to use the USB Host functionality but I have not been able to make it to work. It always stops after "CLASS: Registering Client"
I have tried the following examples on Master branch [69c95bf98306b58d2e8ebca3860dedc9241db68f]:
Code: Select all
git checkout master
git submodule update --init --recursive
- esp-idf/examples/peripherals/usb/host/usb_host_lib
- esp-idf/examples/peripherals/usb/host
Code: Select all
idf.py monitor -p $PORT
Executing action: monitor
Running idf_monitor in directory /Users/username/esp/esp-idf-latest/esp-idf/examples/peripherals/usb/host/usb_host_lib
Executing "/Users/username/.espressif/python_env/idf5.0_py3.9_env/bin/python /Users/username/esp/esp-idf-latest/esp-idf/tools/idf_monitor.py -p /dev/cu.SLAB_USBtoUART -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --target esp32s3 /Users/username/esp/esp-idf-latest/esp-idf/examples/peripherals/usb/host/usb_host_lib/build/usb_host_lib_example.elf -m '/Users/username/.espressif/python_env/idf5.0_py3.9_env/bin/python' '/Users/username/esp/esp-idf-latest/esp-idf/tools/idf.py'"...
--- idf_monitor on /dev/cu.SLAB_USBtoUART 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0110,len:0x18d0
load:0x403b6000,len:0xb70
load:0x403b9000,len:0x31b0
entry 0x403b6240
I (24) boot: ESP-IDF v5.0-dev-2326-g36b83fcb98 2nd stage bootloader
I (25) boot: compile time 16:55:32
I (25) boot: chip revision: 0
I (28) boot.esp32s3: Boot SPI Speed : 80MHz
I (33) boot.esp32s3: SPI Mode : DIO
I (37) boot.esp32s3: SPI Flash Size : 2MB
I (42) boot: Enabling RNG early entropy source...
I (48) boot: Partition Table:
I (51) boot: ## Label Usage Type ST Offset Length
I (58) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (73) boot: 2 factory factory app 00 00 00010000 00100000
I (81) boot: End of partition table
I (85) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=0a9d0h ( 43472) map
I (101) esp_image: segment 1: paddr=0001a9f8 vaddr=3fc91370 size=02b78h ( 11128) load
I (104) esp_image: segment 2: paddr=0001d578 vaddr=40374000 size=02aa0h ( 10912) load
I (113) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1ec00h (125952) map
I (141) esp_image: segment 4: paddr=0003ec28 vaddr=40376aa0 size=0a8d0h ( 43216) load
I (151) esp_image: segment 5: paddr=00049500 vaddr=50000000 size=00010h ( 16) load
I (157) boot: Loaded app from partition at offset 0x10000
I (157) boot: Disabling RNG early entropy source...
I (171) cpu_start: Pro cpu up.
I (171) cpu_start: Starting app cpu, entry point is 0x4037513c
0x4037513c: call_start_cpu1 at /Users/username/esp/esp-idf-latest/esp-idf/components/esp_system/port/cpu_start.c:152
I (0) cpu_start: App cpu up.
I (185) cpu_start: Pro cpu start user code
I (186) cpu_start: cpu freq: 160000000 Hz
I (186) cpu_start: Application information:
I (189) cpu_start: Project name: usb_host_lib_example
I (195) cpu_start: App version: v5.0-dev-2326-g36b83fcb98
I (201) cpu_start: Compile time: Apr 1 2022 16:55:21
I (207) cpu_start: ELF file SHA256: 13b49b0ab9ae4ab2...
I (213) cpu_start: ESP-IDF: v5.0-dev-2326-g36b83fcb98
I (220) heap_init: Initializing. RAM available for dynamic allocation:
I (227) heap_init: At 3FC948F0 len 0004B710 (301 KiB): D/IRAM
I (233) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (240) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (246) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (253) spi_flash: detected chip: gd
I (257) spi_flash: flash io: dio
W (261) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (274) sleep: Configure to isolate all GPIO pins in sleep state
I (281) sleep: Enable automatic switching of GPIO sleep configuration
I (288) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (308) DAEMON: Installing USB Host Library
I (338) CLASS: Registering Client