-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Area: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.
Description
Board
ESP32 Dev Module
Device Description
Hardware Configuration
ESP32-WROOM-32 and USB data line
Version
latest master
IDE Name
ArduinoIDE
Operating System
WIN10
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
921600
Description
When the baud rate of serial port is set to 2500000, the transmission data is wrong. However, when the baud rate is set to 3000000, the transmission data is normal! Repeated tests show that the baud rate of 2000000-2300000 is also normal. But every time it is set to 2500000 baud rate, the data will be wrong. No data is lost, but the data becomes other numbers. For example, I test transmission 0x02. However, the host computer sometimes receives 0x02 and sometimes 0x06.
I tested mega2560 with the same code, and everything was normal.
Is there any way to solve this problem?
Sketch
char cc = 0x02;
void setup()
{
Serial.begin(2500000);
delay(10);
}
void loop()
{
Serial.write(&cc);
delay(500);
}
Debug Message
06 02 02 06 02 06 02 02 06 02 02 02 06 02 02 06 06 06 02 06 02 06 02 02 02 02 02 06 02 06 02 06 02 02 02 02 02 02 06 06 02 06 02 02 02 02 02 06 02 06 06 02 02 06 02 06 02 06 02 02 02 06 06 02 02 06 02 02 06 02 06 06 02 02 02 02 02 02 02 02 06 06 02 02 02 06 06 02 02 06 06 06 02 02 02 02 06 06 06 06 06 06 02 06 06 02 02 02 06 06 06 02 02 06 02 06 02 06 02 06 06 02 06 06 02 02 02 02 06 02 06 06 02 06 02 06 06 06 06 06 02 06 06 06 02 02 02 02 02 02 02 02 02 02 06 02 02 06 02 02 06 06 06 02 02 06 06 02 06 06 02 06 06 06 02 06 02 02 02 02 06 02 02 02 02 06 06 06 02 02 02 06 06 06 02 06 02 02 06 02 06 06 06 02 06 06 06 06 02 06 06 02 02 06 02 06 02 02 06 06 06 06 06 02 06 06 06 06 06 06 06 02 06 02 06
Other Steps to Reproduce
No response
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
Area: Peripherals APIRelates to peripheral's APIs.Relates to peripheral's APIs.Status: SolvedThe issue has been resolved and requires no further action.The issue has been resolved and requires no further action.