Skip to content

Esp32c3 Serial.baudRate() is 2x too high #5287

Closed
@s-hadinger

Description

@s-hadinger

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions