Can ESP32 work with UART0 and UART1 at the same time?

nissim@TelnT.com
Posts: 4
Joined: Fri Jun 02, 2017 10:19 am

Can ESP32 work with UART0 and UART1 at the same time?

Postby nissim@TelnT.com » Fri Jun 02, 2017 10:51 am

It seems that is some confusion on UART1 and UART0 of ESP32 and its function.
On the ESP32 hardware design guide,
https://goo.gl/uWVdKY it stated on Table 4:
UART0 (Pin34) U0 RXD + (Pin35) U0 TXD Used for printing logs.
UART1 (Pin25) U1 RXD + (Pin27) U1 TXD Used for receiving and sending commands.
Since UART0 is used for sending commands I believe it an error in documentation. Maybe need to switch definitions.

My question: can ESP32 UART0 (ESP32 pin34 +pin35) connected to USB for command flashing etc, and UART1(pin25+pin27) can connect to other MCU and both will work on 100% on the same time?
On this forums, I see some place that UART1 uses same buffers or driver as UART0, so UART1 can't work when UART0 is in used.
Dr. Nissim Zur
Consultant design house for Artificial Intelligence
Internet of Things ("IoT") wireless devices.

http://www.TelnT.com
nissim@TelnT.com

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Can ESP32 work with UART0 and UART1 at the same time?

Postby WiFive » Fri Jun 02, 2017 2:40 pm

They can work at the same time.

In AT firmware UART1 is default for commands and UART0 is for debug. In user application you can do whatever you want.

Who is online

Users browsing this forum: Baidu [Spider] and 39 guests