Hi
I used esp32-s3 board run USB_dual_port example with esp-idf-v4.4 release and esp-iot-solution at add usb solutions branch.
The esp usb cdc device can not work.
The error log are as follows:
I (25) boot: ESP-IDF v4.4.2-155-g23d5a582cb-dirty 2nd stage bootloader
I (25) boot: compile time 01:08:38
I (25) boot: chip revision: 0
I (28) boot.esp32s3: Boot SPI Speed : 80MHz
I (33) boot.esp32s3: SPI Mode : DIO
I (38) 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 (59) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (74) 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=09730h ( 38704) map
I (101) esp_image: segment 1: paddr=00019758 vaddr=3fc91590 size=027b0h ( 10160) load
I (104) esp_image: segment 2: paddr=0001bf10 vaddr=40374000 size=04108h ( 16648) load
I (114) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1ad60h (109920) map
I (139) esp_image: segment 4: paddr=0003ad88 vaddr=40378108 size=0947ch ( 38012) load
I (153) esp_image: segment 5: paddr=0004420c vaddr=50000000 size=00010h ( 16) load
I (158) boot: Loaded app from partition at offset 0x10000
I (158) boot: Disabling RNG early entropy source...
I (173) cpu_start: Pro cpu up.
I (173) cpu_start: Starting app cpu, entry point is 0x403751a0
I (0) cpu_start: App cpu up.
I (187) cpu_start: Pro cpu start user code
I (187) cpu_start: cpu freq: 160000000
I (187) cpu_start: Application information:
I (190) cpu_start: Project name: usb_dual_cdc
I (195) cpu_start: App version: 1
I (199) cpu_start: Compile time: Oct 21 2022 01:24:53
I (206) cpu_start: ELF file SHA256: 84f6ce9b4a64d50e...
I (212) cpu_start: ESP-IDF: v4.4.2-155-g23d5a582cb-dirty
I (218) heap_init: Initializing. RAM available for dynamic allocation:
I (226) heap_init: At 3FC96B88 len 00052B88 (330 KiB): D/IRAM
I (232) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (239) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (245) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (252) spi_flash: detected chip: generic
I (256) spi_flash: flash io: dio
W (260) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (273) sleep: Configure to isolate all GPIO pins in sleep state
I (280) sleep: Enable automatic switching of GPIO sleep configuration
I (287) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (307) USB_CDC_MAIN: USB initialization
I (307) tusb_desc: using custom config desc
I (307) tusb_desc: config desc size=141
I (317) tusb_desc:
┌─────────────────────────────────┐
│ USB Device Descriptor Summary │
├───────────────────┬─────────────┤
│bDeviceClass │ 239 │
├───────────────────┼─────────────┤
│bDeviceSubClass │ 2 │
├───────────────────┼─────────────┤
│bDeviceProtocol │ 1 │
├───────────────────┼─────────────┤
│bMaxPacketSize0 │ 64 │
├───────────────────┼─────────────┤
│idVendor │ 0x303a │
├───────────────────┼─────────────┤
│idProduct │ 0x4001 │
├───────────────────┼─────────────┤
│bcdDevice │ 0x100 │
├───────────────────┼─────────────┤
│iManufacturer │ 0x1 │
├───────────────────┼─────────────┤
│iProduct │ 0x2 │
├───────────────────┼─────────────┤
│iSerialNumber │ 0x3 │
├───────────────────┼─────────────┤
│bNumConfigurations │ 0x1 │
└───────────────────┴─────────────┘
I (487) TinyUSB: TinyUSB Driver installed
I (487) USB_CDC_MAIN: USB initialization DONE
cdcd_open 287: assert failed
process_set_config 879: assert failed
process_control_request 660: assert failed
cdcd_open 287: assert failed
process_set_config 879: assert failed
process_control_request 660: assert failed
cdcd_open 287: assert failed
process_set_config 879: assert failed
process_control_request 660: assert failed
Hi I used esp32-s3 board run USB_dual_port example with esp-idf-v4.4 release and esp-iot-solution at add usb solutions branch. The esp usb cdc device can not work. The error log are as follows: I (25) boot: ESP-IDF v4.4.2-155-g23d5a582cb-dirty 2nd stage bootloader I (25) boot: compile time 01:08:38 I (25) boot: chip revision: 0 I (28) boot.esp32s3: Boot SPI Speed : 80MHz I (33) boot.esp32s3: SPI Mode : DIO I (38) 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 (59) boot: 0 nvs WiFi data 01 02 00009000 00006000 I (66) boot: 1 phy_init RF data 01 01 0000f000 00001000 I (74) 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=09730h ( 38704) map I (101) esp_image: segment 1: paddr=00019758 vaddr=3fc91590 size=027b0h ( 10160) load I (104) esp_image: segment 2: paddr=0001bf10 vaddr=40374000 size=04108h ( 16648) load I (114) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1ad60h (109920) map I (139) esp_image: segment 4: paddr=0003ad88 vaddr=40378108 size=0947ch ( 38012) load I (153) esp_image: segment 5: paddr=0004420c vaddr=50000000 size=00010h ( 16) load I (158) boot: Loaded app from partition at offset 0x10000 I (158) boot: Disabling RNG early entropy source... I (173) cpu_start: Pro cpu up. I (173) cpu_start: Starting app cpu, entry point is 0x403751a0 I (0) cpu_start: App cpu up. I (187) cpu_start: Pro cpu start user code I (187) cpu_start: cpu freq: 160000000 I (187) cpu_start: Application information: I (190) cpu_start: Project name: usb_dual_cdc I (195) cpu_start: App version: 1 I (199) cpu_start: Compile time: Oct 21 2022 01:24:53 I (206) cpu_start: ELF file SHA256: 84f6ce9b4a64d50e... I (212) cpu_start: ESP-IDF: v4.4.2-155-g23d5a582cb-dirty I (218) heap_init: Initializing. RAM available for dynamic allocation: I (226) heap_init: At 3FC96B88 len 00052B88 (330 KiB): D/IRAM I (232) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM I (239) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM I (245) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM I (252) spi_flash: detected chip: generic I (256) spi_flash: flash io: dio W (260) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header. I (273) sleep: Configure to isolate all GPIO pins in sleep state I (280) sleep: Enable automatic switching of GPIO sleep configuration I (287) cpu_start: Starting scheduler on PRO CPU. I (0) cpu_start: Starting scheduler on APP CPU. I (307) USB_CDC_MAIN: USB initialization I (307) tusb_desc: using custom config desc I (307) tusb_desc: config desc size=141 I (317) tusb_desc: ┌─────────────────────────────────┐ │ USB Device Descriptor Summary │ ├───────────────────┬─────────────┤ │bDeviceClass │ 239 │ ├───────────────────┼─────────────┤ │bDeviceSubClass │ 2 │ ├───────────────────┼─────────────┤ │bDeviceProtocol │ 1 │ ├───────────────────┼─────────────┤ │bMaxPacketSize0 │ 64 │ ├───────────────────┼─────────────┤ │idVendor │ 0x303a │ ├───────────────────┼─────────────┤ │idProduct │ 0x4001 │ ├───────────────────┼─────────────┤ │bcdDevice │ 0x100 │ ├───────────────────┼─────────────┤ │iManufacturer │ 0x1 │ ├───────────────────┼─────────────┤ │iProduct │ 0x2 │ ├───────────────────┼─────────────┤ │iSerialNumber │ 0x3 │ ├───────────────────┼─────────────┤ │bNumConfigurations │ 0x1 │ └───────────────────┴─────────────┘ I (487) TinyUSB: TinyUSB Driver installed I (487) USB_CDC_MAIN: USB initialization DONE cdcd_open 287: assert failed process_set_config 879: assert failed process_control_request 660: assert failed cdcd_open 287: assert failed process_set_config 879: assert failed process_control_request 660: assert failed cdcd_open 287: assert failed process_set_config 879: assert failed process_control_request 660: assert failed
Please tell me how to solve it, Thank you!