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

zcy7376
Posts: 2
Joined: Thu May 16, 2024 8:07 am

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

Postby zcy7376 » Thu May 16, 2024 5:14 pm

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!)

sudeep-mohanty
Posts: 6
Joined: Tue Aug 15, 2023 10:49 am

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

Postby sudeep-mohanty » Fri May 17, 2024 8:38 am

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?

zcy7376
Posts: 2
Joined: Thu May 16, 2024 8:07 am

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

Postby zcy7376 » Fri May 17, 2024 8:54 am

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

Who is online

Users browsing this forum: Bing [Bot] and 396 guests