Skip to content

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

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

Closed
BG2CRW opened this issue Jun 5, 2021 · 6 comments · Fixed by #5549
Closed

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

BG2CRW opened this issue Jun 5, 2021 · 6 comments · Fixed by #5549
Assignees
Milestone

Comments

@BG2CRW
Copy link

BG2CRW commented Jun 5, 2021

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

@BG2CRW
Copy link
Author

BG2CRW commented Jun 5, 2021

代码如下:

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
Copy link
Contributor

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

@VojtechBartoska
Copy link
Contributor

@BG2CRW Please keep your issue in English here.

@lengbuyu
Copy link

lengbuyu commented Jun 9, 2021

@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.

@VojtechBartoska VojtechBartoska added Resolution: Duplicate Issue is a duplicate of another issue and removed Resolution: Duplicate Issue is a duplicate of another issue labels Jun 11, 2021
@VojtechBartoska VojtechBartoska added the Status: Test needed Issue needs testing label Jul 28, 2021
@VojtechBartoska VojtechBartoska added this to the 2.0.1 milestone Jul 29, 2021
@lybgo
Copy link

lybgo commented Aug 3, 2021

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

@SuGlider
Copy link
Collaborator

SuGlider commented Aug 3, 2021

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

me-no-dev pushed a commit that referenced this issue Aug 23, 2021
## Summary
This PR is a complete reffactoring of UART Serial Hardware and respective HAL in order to use IDF instead of current Register manipulation approach. 

It  implements Arduino SerialEvent functionality. 

Fix #5287  
Fix #5273 
Fix #5519 
Fix #5247 
Fix #5403
Fix #5429
Fix #5047
Fix #5463
Fix #5362 
Fix #5112  
Fix #5443 

## Impact
It solves many reported issues related to UART.
It was tested and works fine for ESP32, ESP-S2 and ESP32-C3.
@VojtechBartoska VojtechBartoska removed the Status: Test needed Issue needs testing label Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants