Skip to content

Serial drops characters on ESP32 Arduino version 2.0.2 #6205

Closed
@technoblogy

Description

@technoblogy

Board

Adafruit Feather ESP32

Device Description

Plain board.

Hardware Configuration

No.

Version

v2.0.2

IDE Name

Arduino IDE

Operating System

macOS 10.13.6

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

921600

Description

Echoing text in the Serial Monitor causes dropped characters. Run the following sketch, then cut and paste the following text into the Serial Monitor input field, and press Return:

$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

The text is echoed as:

$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRS

(without the line break), so the last 8 characters have been dropped.

Sketch

void setup() {
  Serial.begin(9600);
}

void loop (void) {
  if (Serial.available()) Serial.print((char)Serial.read());
}

Debug Message

No debug output.

Other Steps to Reproduce

I have repeated the same test on ESP32 Arduino core version 1.0.6 and it works fine; in other words, it echoes:

$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
$0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ

(without the line break).

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions