-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Serial drops characters on ESP32 Arduino version 2.0.2 #6205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried to increase the receive buffer? I've found the new uart implementation to be much more robust then the previous (1.0.6) version. |
@mstegen thanks for the suggestion. I've tried that but it doesn't seem to have any effect, either on my simple test above, or on my real application (uploading programs to uLisp running on ESP boards). |
@technoblogy This issue has been fixed in PR #6133 Please let me know. |
@SuGlider Thank you for your reply. I confirm that applying that fix solves the problem on the following boards I've tested: Adafruit ESP32 Feather However I'm still unable to get Serial to work reliably on ESP32-S2 boards. Should this also fix that case? Thanks! |
@technoblogy In case you have found some other specific issue with HardwareSerial, please open a new issue and I'll analyze it. |
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:
(without the line break), so the last 8 characters have been dropped.
Sketch
Debug Message
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:
(without the line break).
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: