-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Wifi connect fails if serial bytes are incoming #1123
Comments
just found esp8266/Arduino#4328 |
ok that PR helped a bit but the issue is still there and it is even stranger than before. The sample sketch doesn't crash any more, thats an improvement. But it doesn't work with ESPEasy yet. I still have the WD triggered when I got serial bytes incoming during boot. I narrowed it down to WifiAPconfig(). The WD is triggered in line WiFi.softAP() when the parameters equal to "EHZ_5" and "configesp". Variable or const string doesn't matter. But if I put in my own wifi credentials, it doesn't crash. |
In the current WiFi code, there is something like this:
Maybe something like this is needed here also? |
Will try it tomorrow. But where is the connection between the UART interrupt and wifi? |
interrupts do interrupt anything. |
@TD-er This does not work: This works:
printing WifiGetAPssid().c_str() and SecuritySettings.WifiAPKey shows "EHZ_5" and "configesp" edit2:
wtf!? |
Actually it does make sense. |
@TD-er: you made my day. Thanks. |
Quite possible there are bugs like that, but hard to find. |
This is fixed right? |
This affects 2.4.0 + core versions, but only in combination with ESPEasy.
I have 550 bytes incoming on serial (9600bps). Once per second, asynchonously. If I unplug the serial interface, the ESP boots fine. With it connected it stalls after program memory check until the WDT kicks in.
If I re-connect my serial wire after startup- everything is fine.
If I use 2.3.0 everything is fine.
If I use 2.4.0 (minimal webserver example , no ESPEasy) everything is fine.
I tried already:
The only known workaround is swapping serial to TX2/RX2 pins until WiFi connect has finished and swapping it back a couple of seconds later.
I know that ESPEasy is officially 2.3.0 but I maybe someone has a hint for me on where to look...
Are there interrupts active in ESPEasy ?
Looks like a buffer overflow that is not serviced and stalls the system. But why does it affect ESPEasy only and not the plain webserver example?
The text was updated successfully, but these errors were encountered: