1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我专门买了 ESP32-S3-USB-OTG 开发板来使用 USB Host 功能,但我无法让它工作。它总是在“CLASS: Registering Client”之后停止
代码: git checkout master git submodule update --init --recursive 我在 Master 分支 [69c95bf98306b58d2e8ebca3860dedc9241db68f] 上尝试了以下示例:
代码: 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 |
|
相关推荐
1个回答
|
|
我有这个工具包,它确实可以作为主机工作,usb-host-lib 示例应该为您提供所连接设备的 USB 描述符,您是否将 USB 信号路由到主机连接器并打开电源?两者都需要完成,ESP32 才能充当主机。
此路由的代码不是示例的一部分,需要添加(因为示例是通用示例)。 我使用方框图中的“USB A 公头到 PC”连接为我的设备供电,电源开关关闭。 |
|
|
|
只有小组成员才能发言,加入小组>>
1140 浏览 1 评论
577浏览 6评论
478浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
462浏览 5评论
463浏览 4评论
438浏览 4评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 19:32 , Processed in 0.587562 second(s), Total 72, Slave 56 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号