Page 1 of 1

Is there a way to run console on both usb_serial_jtag and UART for ESP32-S3?

Posted: Thu May 16, 2024 5:14 pm
by zcy7376
Ideally I want to log in to the same console by connecting either UART or USB port. Is that technically possible?
Configuring usb_serial_jtag as secondary output is close, but it won't be able to take inputs from console.

The ESP32-S3 Micropython image (https://micropython.org/download/ESP32_GENERIC_S3) is actually supporting this feature.
Looks like they're achieving this by configuring USB as OTG. But at least it proofs it's possible in hardware?

Can I configure usb_serial_jtag as the primary output then manually configure UART0 and hook it up to stdin/stdout?

(Asked in hardware component as well. Once it's got answered I will link the answer in both thread, thanks!)

Re: Is there a way to run console on both usb_serial_jtag and UART for ESP32-S3?

Posted: Fri May 17, 2024 8:38 am
by sudeep-mohanty
Hi,
Currently the esp_console does not support simultaneous inputs on both ports. This is a feature which has been requested before and we do have it in our roadmap. Please have a look at this ticket - https://github.com/espressif/esp-idf/issues/9986.

May I ask what is your use-case and why would you like to have this feature supported?

Re: Is there a way to run console on both usb_serial_jtag and UART for ESP32-S3?

Posted: Fri May 17, 2024 8:54 am
by zcy7376
Thanks, the github issue describes the exact same feature I would like to achieve!
Glad to see it's on your radar and has been worked on!

I think currently we're just having unnecessary mutual exclusion kconfig regarding UART v.s. USB_SERIAL_JTAG