-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Exception (0) with GPIO interrupts (during WiFi.begin()) #3378
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
Can you see what is the output of |
Since I'm not at home I needed to recompile on a different PC, and checked with a couple of addresses. They correspond with the stack trace above. Result of the command above for the given address 0x40214624:
|
Unless you are actually calling MD5Builder functions somewhere from an interrupt, this is likely caused by the fact that your ELF file compiled on another PC is slightly different from the one which was used to obtain the stack trace. The ELF file needs to be exactly the same one as was used for programming the board. Alternatively, recompile and flash the new one. When exception happens, take |
Thanks for the excellent hint to use xtensa-lx106-elf-addr2line.exe . I was not aware of the tool. It would be great to add a link to this tool to the documentation, FAQ, etc. Finally it then took me 5 minutes to find the reason. Actually the problem was caused by using the functional interrupt (pull request Functional Interrupts #2745). Removing and going back to an simple isr wrapper function solved my problem. If it is of interest, I will spend some time with my setup to better understand the issue. Thanks Andreas |
Basic Infos
Hardware
Hardware: Feather Huzzah esp8266
Core Version: 2.4.0-rc1
Description
Exception (0) when using WiFIMulti.run() and GPIO interrupts.
In my code, the ISR (put in RAM) essentially does a comparison of last time called (for debouncing) using millis() and reading with digitalRead() and some comparisons. If the code is close to WiFi.begin(), the problem can be reproduced pretty easy by turning the attached rotary encoder.
The same problem occurs with just using WiFi.begin(), but than is harder to reproduce.
Debug Messages
I'm lost in where to continue debugging my code and any hints are appreciated!
Thanks Andreas
The text was updated successfully, but these errors were encountered: