feat(factory): support USB CDC alongside UART CLI

This commit is contained in:
chenjintao
2026-10-27 15:04:14 +08:00
parent 6116a67d5f
commit 002967b21f
13 changed files with 583 additions and 69 deletions
+10
View File
@@ -1380,6 +1380,16 @@ menu "TQ Cat Configuration"
device identity provisioning, public-key retrieval, and
on-device challenge signing.
config TQ_FACTORY_CLI_USB_CDC_ENABLE
bool "Also accept factory CLI commands over USB Serial/JTAG CDC"
depends on TQ_FACTORY_CLI_ENABLE && SOC_USB_SERIAL_JTAG_SUPPORTED && !ESP_CONSOLE_USB_CDC
default y
help
Use the ESP32-S3 built-in USB Serial/JTAG CDC port in addition
to UART0. Each input has a separate command buffer and replies
return to the requesting port. This is not TinyUSB/USB-OTG CDC.
GPIO19/20 must remain connected to the native USB connector.
config TQ_FACTORY_CLI_TASK_STACK_BYTES
int "Factory CLI task stack (bytes)"
default 7168