esp32C3 super mini 2~3 UART

brebisson
Posts: 37
Joined: Fri Dec 22, 2023 9:44 am

esp32C3 super mini 2~3 UART

Postby brebisson » Wed Jan 07, 2026 10:41 am

Hello,

My project uses an esp32C" super mini.

I need to send/receive data to the PC using the USB connector. As far as I understand, this uses UART 0

I also need to send data to a serial client (A), at 115200 baud
And I need to receive data from a different serial client (B), but at 9600 bauds.

At this point in time, I use UART 1 at startup time, set at 9600 baud to get the data from serial client B, and then I switch to 115200 and start talking to serial client A.

But is there a way to work with both at the same time?

Cyrille

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: esp32C3 super mini 2~3 UART

Postby MicroController » Wed Jan 07, 2026 11:59 am

I need to send/receive data to the PC using the USB connector. As far as I understand, this uses UART 0
No. The USB connection happens via the USB Serial/JTAG peripheral, so you can use both UART0 and UART1 for other purposes.

brebisson
Posts: 37
Joined: Fri Dec 22, 2023 9:44 am

Re: esp32C3 super mini 2~3 UART

Postby brebisson » Thu Jan 08, 2026 7:20 am

Hello,

I confirm that I was able to use UART 0, 1 and USB,

BUT, to do so, I had to change the configuration files using these values (sorry it's a mess):
ESP-Driver:USB Serial/JTAG Configuration is enable,
# CONFIG_APPTRACE_DEST_UART0 is not set
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
# CONFIG_ESP_CONSOLE_UART_CUSTOM is not set
# CONFIG_ESP_CONSOLE_NONE is not set
CONFIG_ESP_CONSOLE_SECONDARY_NONE=y
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG_ENABLED=y
CONFIG_ESP_CONSOLE_UART_NUM=-1
CONFIG_ESP_CONSOLE_ROM_SERIAL_PORT_NUM=3
# CONFIG_CONSOLE_UART_DEFAULT is not set
# CONFIG_CONSOLE_UART_CUSTOM is not set
# CONFIG_CONSOLE_UART_NONE is not set
# CONFIG_ESP_CONSOLE_UART_NONE is not set
CONFIG_CONSOLE_UART_NUM=-1

Cyrille

Who is online

Users browsing this forum: Bing [Bot], meta-externalagent, PetalBot, Roland and 4 guests