-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WiFi connection to non-existent AP failes with stack dump #1299
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
When providing the credentials to the begin() method, I am also getting the following errors:
It seems that for some reasons the watchdog gets triggered. |
I am not sure whether it's a really issue... Because after several times calling ESP.eraseConfig(); it seems to work again. (not 100% reliable but it doesn't crash so often) |
After several times just disconnecting the AP from power the ESP crashes again with many different errors. Sometimes the errors occur directly after restart, sometimes some seconds after restart. Found out, that it also happens when changing the WiFi mode from AP+STA to AP. Is there somewhere a documentation which explains the different error codes? Just a view examples which I was able to get just after pulling the power plug (just removed the stack dump):
|
the Fatal exception are here: the rest of the message are memory addresses and point to "code"
to get the function name to the addresses. may you have the same problem then: #1073 |
Thank you for the hints. I recompiled the bin/elf file, uploaded it again, just to be sure the object file and the code on the flash are the same. Than I unplugged the power from the AP.
The dumped object file around this address shows the following:
Than, just after the restart of the ESP it crashed again. The C Source looks like that: void setup()
{
// Initialize serial output
Serial.begin(BAUD_RATE);
while (!Serial) yield();
Serial.println(F("Starting ESP8266"));
Serial.setDebugOutput(true);
// Initialize file system
if (!SPIFFS.begin()) {
Serial.println(F("Failed to mount file system"));
} The serial output was as followed:
Back to the object file, the address shows:
To be honest, I am not the expert in reading stack dumps :) So I am a little bit uncertain whether I'm searching in the right direction or if the problem is elsewhere? |
I repeated it several times. Most of the time I get:
which is:
It also happend in the function
and in hostap_input on multiple locations: 4022cf7f, 4022cfbf
|
the dumps look like flash access problems,
|
D'oh... that's embarrassing. I use the USB port with a voltage regulator now for many weeks at it worked like a charm. Just to make sure I didn't miss anything I now power it with my DC power supply. And what can I say? No exceptions / stack dumps any more. Thank you very much for your help :) |
ctx: sys
ets Jan 8 2013,rst cause:4, boot mode:(3,6) |
Has this issue been resolved? Was it just the power related problem? |
I successfully connected the ESP to my WiFi. If I disconnect the AP or start the ESP out of range of the AP the ESP crashed with a stack dump.
The sketch is very simple:
and the output is:
The stack dump is not always exactly the same. Here another example
As soon as I power on the AP everything works very fine and reliable.
The text was updated successfully, but these errors were encountered: