乐鑫技术交流
直播中

贾桂林

8年用户 1607经验值
私信 关注
[问答]

ESP32s2尝试运行esp-idf/examples/peripherals/usb/device/tusb_serial_device/无法正常工作的原因?如何解决?

我有一个与 ESP32s2(带 RGB 的 Saola 板)相关的问题

我正在尝试运行 esp-idf/examples/peripherals/usb/device/tusb_serial_device/

但它无法正常工作。

即使来自 PC 的数据接收正常,我也总是收到刷新错误。

有谁知道出了什么问题?

输出附在清单上。
代码:全选
I (1285488) example: Data from channel 0:
I (1285498) example: 0x3ffc0370   61                                                |a|
W (1285498) tusb_cdc_acm: flush failed (res: 0)
USBD Xfer Complete on EP 02 with 1 bytes
  CDC xfer callback
  Queue EP 02 with 64 bytes ...
I (1285778) example: Data from channel 0:
I (1285778) example: 0x3ffc0370   62                                                |b|
W (1285788) tusb_cdc_acm: flush failed (res: 0)
USBD Xfer Complete on EP 02 with 1 bytes
  CDC xfer callback
  Queue EP 02 with 64 bytes ...
I (1285988) example: Data from channel 0:
I (1285988) example: 0x3ffc0370   61                                                |a|
W (1285998) tusb_cdc_acm: flush failed (res: 0)
USBD Xfer Complete on EP 02 with 1 bytes
  CDC xfer callback
  Queue EP 02 with 64 bytes ...
I (1286178) example: Data from channel 0:
I (1286178) example: 0x3ffc0370   62                                                |b|
W (1286188) tusb_cdc_acm: flush failed (res: 0)
USBD Xfer Complete on EP 02 with 1 bytes
  CDC xfer callback
  Queue EP 02 with 64 bytes ...
I (1286368) example: Data from channel 0:
I (1286378) example: 0x3ffc0370   61                                                |a|
W (1286378) tusb_cdc_acm: flush failed (res: 0)

USBD Setup Received 00 03 01 00 00 00 00 00
  Set Feature
    Enable Remote Wakeup
  Queue EP 80 with 0 bytes ...
USBD Xfer Complete on EP 80 with 0 bytes
USBD Suspend : Remote Wakeup = 1


回帖(1)

符敛招

2023-3-1 13:48:17
是否可能是电缆故障?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分