-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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] Guru meditation error when changing baudrate and using Wire #2015
Comments
Have you tried using #1961? He includes a timeout which should keep from triggering the watchdog. |
Put a flush after your println. Changing baud in the middle of sending is bad. |
@stickbreaker Tried, it doesn't help. |
|
@NickChungVietNam Tried it, makes baud rate negotiation more stable when 460800 rate is excluded from list. |
You need define type 460800 in "usigned long" or (uint32_t). To check the current baudrate value , use |
I don't think unsigned long or int makes a difference in that case. int max value on esp32 is 2147483647 |
See this ::begin |
I updated arduino-esp32 to latest commit as I saw some serial related code was merged recently. |
Im still experiencing problem. I narrowed it down to uartEnableInterrupt call from uartAttachRx. Seems uartEnableInterrupt is getting deadlock for some reason |
Closing as I don't need to do trick with Serial.begin/end. Im using changeBaudRate introduced in #2223 |
Hardware:
Board: ESP32 OLED V2.0 TTGO
Core Installation/update date: 04.11.2018
IDE name: Visual Micro
Flash Frequency: 40Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10
Description:
I'm building a library for sim800l modem which needs to find it's current baudrate.
Guru meditation error occurs when program try to iterate through baudrates for the second time.
It seems that Serial.begin hangs sometimes.
When im not initializing Wire in setup, Guru meditation error does not occur but Serial.begin is stuck anyway.
Debug Messages:
The text was updated successfully, but these errors were encountered: