Closed
Description
Related Information
Board
ESP32, ESP32-S2 and ESP32-C3
Hardware Configuration
ESP32 - loopback on UART2 : TX2 <--> RX2
ESP32-S2 and ESP32-C3 - loopback on UART1 : TX1 <--> RX1
Description
When trying to send data in a UART loopback configuration, it fails and nothing is read.
Using Arduino Core 2.0.0 and 2.0.1 - it works fine. The issue is with v2.0.2
Most problably something related to last change on support to MODBUS #6026
Sketch
HardwareSerial LOOPBACK_UART(2); // UART2 on ESP32 and UART1 on S2/C3
void setup() {
Serial.begin(115200);
LOOPBACK_UART.begin(115200);
Serial.println("Serial Port 0 - Testing");
}
void loop() {
static uint8_t count = 0;
//Shorted Pins TX<->RX using ESP32/UART2 or S2/C3/UART1
LOOPBACK_UART.write('0' + count);
if (LOOPBACK_UART.available()) {
Serial.write(LOOPBACK_UART.read());
}
count++;
if ('0' + count > 'Z') {
count = 0;
LOOPBACK_UART.println();
}
delay(100);
}
Debug Message
Correct Output should be:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1420
ho 0 tail 12 room 4
load:0x40078000,len:13540
load:0x40080400,len:3604
entry 0x400805f0
Serial Port 0 - Testing
0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ
0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ
but with v2.0.2 there is no output after the message Serial Port 0 - Testing
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done