← index #17672Issue #8640
Related · high · value 1.584
QUERY · ISSUE

ESP32-C6, ESP32-S3, etc.: MICROPY_HW_ENABLE_UART_REPL should be disabled for boards that have both direct USB and UART connectors

openby bikeNomadopened 2025-07-13updated 2025-08-10
enhancementport-esp32

Description

On many ESP32 boards, there are two USB connectors: one connected directly to the MCU and the other connected via a USB/UART bridge chip.

The default ESP32 build for these boards puts the REPL on both ports, making it impossible to use the USB/UART connector as an independent UART for other purposes.

See discussion at #17633 .

Code Size

No response

Implementation

I hope the MicroPython maintainers or community will implement this feature

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

ESP32-C3 CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y disables repl on USB

closedby bdambrosioopened 2022-05-06updated 2022-05-06

On my ESP32-C3 boards (AI-Thinker, Espressif esp32-c3 devkit, and Espressif esp32-c3-wroom), I could only get repl on the uart RX/TX pins using the default GENERIC_C3_USB board defs.

I had to change to
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
CONFIG_ESP_CONSOLE_USB_CDC=y
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=

and now I get repl on the USB.
Shouldn't this be the default, or am I missing something?

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied