USB-JTAG/serial 存在脏数据

n0neff
Posts: 3
Joined: Tue Oct 17, 2023 3:55 am

USB-JTAG/serial 存在脏数据

Postby n0neff » Thu Jun 13, 2024 2:08 am

环境信息:
操作系统
Fedora 40
硬件:esp32c3-mini-1(chip reversion v0.4)
ESP-IDF:ESP-IDF v5.2.2

UART0通过USB转串口模块连接到电脑的`/dev/ttyUSB0`
USJ通过USB线直接连接到电脑`/dev/ttyACM0`

sdkconfig按照文档和USJ可能相关的有:

Code: Select all

CONFIG_SOC_USB_SERIAL_JTAG_SUPPORTED=y

CONFIG_SOC_EFUSE_DIS_USB_JTAG=y

CONFIG_ESP_ROM_USB_SERIAL_DEVICE_NUM=3

# CONFIG_APPTRACE_DEST_USB_CDC is not set

# CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG is not set
# CONFIG_ESP_CONSOLE_UART_CUSTOM is not set
# CONFIG_ESP_CONSOLE_NONE is not set
# CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
# CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG is not set
代码基于usb_serial_jtag_echo这个example改的

预期结果:
USJ像普通串口一样工作,`usb_serial_jtag_read_bytes`正常读取

实际结果:
USJ时不时出现长度不一致的脏数据,这些数据通常出现在我自己数据的前方,看起来像是LOG之类的东西。


补充信息:
部分脏数据
hex: 70 75 5F 73 74 61 72 74 3A 20 41 70 70 20 76 65

ascii: pu_start: App ve

hex: 29 20 63 70 75 5f 73 74 61 72 74 3a 20 41 70 20

ascii: ) cpu_start: Ap

Who is online

Users browsing this forum: No registered users and 67 guests