-
Notifications
You must be signed in to change notification settings - Fork 7.6k
The ESP32 processor hangs on a second call to Serial.begin(115200) when compiled for ESP32 Dev Module. #5043
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
Please follow the ISSUE_TEMPLATE. |
Never mind if you are not interested. All relevant information is there, can be verified easily. OS: Windows 10 - not relevant |
Can you please indicate what version of the code you are running? |
1.0.6 - is this the version you mean? |
Well, there's an easy workaround. I'll put in a PR and see if someone with JTAG can figure out what is actually causing the hang. |
I just repeated the test with ESP32-Wrover on LOLIN D32 PRO: |
If you set core debugging to verbose it will work. This is a timing issue. |
Ok, thank you, I will try. But how to explain this to users of my library? |
Verbose didn't help, on LOLIN D32 PRO. |
Thank you for the fast response. Glad the issue is verified and a solution is found. |
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!?
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
This issue seems still to be present. See e.g. https://forum.arduino.cc/t/esp32-e-paper-display-upload-but-no-output/927375/3 |
Here is the fix:. |
Maybe someone should make the old download link invalid, remove the version pointed to! See https://forum.arduino.cc/t/waveshare-e-paper-displays-with-spi/467865/3114 Jean-Marc |
I verified this on a ESP32 Dev Module clone, on a Wemos LOLIN32 Lite, and on the Waveshare e-Paper ESP32 Driver Board.
The GxEPD2 examples call Serial.begin(115200) in setup() to Serial.print("setup"), and again in display.init(115200).
Related post in Arduino Forum Displays: https://forum.arduino.cc/index.php?topic=487007.msg4952538#msg4952538
The text was updated successfully, but these errors were encountered: