-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Serial::end hang #5047
Serial::end hang #5047
Conversation
Even after applying that change, the program in #5043 still hangs on my ESP32 devkit-c / Arduino lib 1.0.6 . |
When calling Serial::begin() (on ESP32) you apparently need to give all parameters or else it may use default parameters (makes no sense!) Serial::end() may cause a hang or crash -> timing issue See crash/hang: - espressif/arduino-esp32#5047 - espressif/arduino-esp32#5004 - espressif/arduino-esp32@81b7c47 - espressif/arduino-esp32#5112 - espressif/arduino-esp32#5032 Switch back to default: - espressif/arduino-esp32#5026
## 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.
I still get posts related to this issue: #5043. Please re-open the issue, so other users can give it a "booster shot"! See e.g. https://forum.arduino.cc/t/esp32-e-paper-display-upload-but-no-output/927375/3 |
@ZinggJM Are you still using core 1.0.6 or PlatformIO (which is still using 1.0.6)? |
Yes, the installed version is 1.0.6 on Arduino IDE 1.8.15. |
@ZinggJM you are probably using the old board manager link. Please update it: https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-boards-manager |
Yes, like so many others, I assume! Skipping contributed index file C:\Users\ZinggJ\AppData\Local\Arduino15\installing.html, parsing error occured: |
This error is not related to our link. You are the first to report such issue. Maybe some issue with firewall or downloading? |
I will check again on a different notebook. Please note that https://github.com/arduino/Arduino/wiki/Unofficial-list-of-3rd-party-boards-support-urls |
With the line removed, the error went away. |
Aha, your link is a link to the link, not the link itself. Thanks. |
@ZinggJM thanks for noting the old link in Arduino. I have updated it. |
workaround for #5043. There is a timing issue with HardwareSerial::end. I'm not sure what is hung, but it should be possible to see this in jtag, as it does cause a reboot if you let it. The delay needs to be before you detach the device!?