Skip to content

esp32 c3 的hardwareSerial库不能用,串口不能收发 #5247

Closed
@BG2CRW

Description

@BG2CRW

esp32 c3 的hardwareSerial库不能用,串口不能收发

Activity

BG2CRW

BG2CRW commented on Jun 5, 2021

@BG2CRW
Author

代码如下:

HardwareSerial mySerial1(1);
void setup() {
mySerial1.begin(115200, SERIAL_8N1, 5, 18); //rx:5,tx:18
}

void loop() {
mySerial1.println("hello world");
delay(1000);

}

lbernstone

lbernstone commented on Jun 5, 2021

@lbernstone
Contributor

Yes. HardwareSerial needs to be rewritten to use the new driver/hal.

VojtechBartoska

VojtechBartoska commented on Jun 7, 2021

@VojtechBartoska
Contributor

@BG2CRW Please keep your issue in English here.

lengbuyu

lengbuyu commented on Jun 9, 2021

@lengbuyu

@VojtechBartoska
He's mean is
ESP32 C3 can't use HardwareSerial Library, the serial port cannot receive and send.

Code:
HardwareSerial mySerial1(1);
void setup() {
mySerial1.begin(115200, SERIAL_8N1, 5, 18); //rx:5,tx:18
}

void loop() {
mySerial1.println("hello world");
delay(1000);
}

Just help translate.

added this to the 2.0.1 milestone on Jul 29, 2021
lybgo

lybgo commented on Aug 3, 2021

@lybgo

When can we solve this problem?
I have products that also need to use Serial1 communication

SuGlider

SuGlider commented on Aug 3, 2021

@SuGlider
Collaborator

It's currently under work through a complete refactoring.
I'll post here a PR in a couple weeks.

added a commit that references this issue on Aug 23, 2021
b1d072d

1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    esp32 c3 的hardwareSerial库不能用,串口不能收发 · Issue #5247 · espressif/arduino-esp32