Closed
Description
Hardware:
Board: ESP32-C3-DevKitM-1
Core Installation version: 2.0.0 alpha1
IDE name: Platform.io
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Mac OSX
Description:
Describe your problem here
The baudrate returned by Serial.baudRate()
is twice the expected value.
The Serial port is opened with 115200, but Serial.baudRate()
returns ~230400.
Sketch: (leave the backquotes for code formatting)
#include <Arduino.h>
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.printf(">> Serial baudrate: %d\n", Serial.baudRate());
delay(1000);
}
// Output:
// >> Serial baudrate: 230423
Metadata
Metadata
Assignees
Labels
No labels
Activity
lbernstone commentedon Jun 14, 2021
Yes, uart needs to be rewritten. This should be a workaround until then:
s-hadinger commentedon Jun 14, 2021
Thanks, this works fine.
SuGlider commentedon Aug 15, 2021
UART is being refactored to be based on IDF and this issue shall be solved when it is released.
Implements UART SerialHardware Refactoring on top of IDF (#5549)