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
esp32C3 super mini 2~3 UART
-
MicroController
- Posts: 2661
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: esp32C3 super mini 2~3 UART
No. The USB connection happens via the USB Serial/JTAG peripheral, so you can use both UART0 and UART1 for other purposes.I need to send/receive data to the PC using the USB connector. As far as I understand, this uses UART 0
Re: esp32C3 super mini 2~3 UART
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
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