-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Esp32C3 Serial1 can not use #5463
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
Comments
Flash mode looks strange. Looks like a mismatch between mode DIO and QIO. |
My test code is the following simple lines, can you tell me which code to add to solve?
|
In Arduino IDE menu there should be the option to select the flash mode. I do not use Arduino IDE so maybe it is somewhere else to select the flash mode |
I've tried all the Flash modes (QIO,DIO,DOUT,QOUT), but it still doesn't work out. |
@lybgo Try passing in pin numbers to use for Serial1. The defaults being picked (TX:17, RX: 18) overlap with the on-board flash (at least TX does) and that is why you are seeing a consistent reboot. Try: Note that pins 18 and 19 are also used for USB-JTAG. |
@atanisoft I have tried your method, C3 will not restart constantly, but Serial1 cannot communicate, I have tried all pins (0-9,18,19). |
Same here, Trying to use GPIO 2 & 3, nothing happend on the pins: Serial1.begin(115200, SERIAL_8N1, RX1, TX1); |
For the moment the only solution that I have: use function from ESP IDF into Arduino IDE, that works.
|
You should not use headers from an external idf in arduino. |
HardwareSerial is currently under refactoring. Please hold for the news. |
Guys, I have created a PR to solve this issues, as well as other Arduino UART issues. IF you want to try it and comment on the PR, please use |
## 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.
|
Please don't hijack issues. This issue was for a previous version. Open a new issue and follow the posting instructions. |
Hardware:
Board: ?ESP32C3 Dev Module?
Core Installation version: git master newest code
IDE name: ?Arduino IDE?
Flash Frequency: ?160Mhz?
Upload Speed: ?921600?
Computer OS: ?Windows 10?
Description:
When I use "Serial1.begin(9600);" ,ESP32C3 reboot forever.
Sketch: (leave the backquotes for code formatting)
Debug Messages:
The text was updated successfully, but these errors were encountered: