-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
SmartConfig makes the ESP crash when receiving the WiFi informations for connection #3711
Comments
did yo ever get EspExceptionDecoder working? like sketches, the file name and the folder name have to be the same or it will not be indexed ie; |
Yes, I finally got it running! I hope it could help. Trace copied onto EspExceptionDecoder
Decoding stack results
|
thanks for the decoded post it is showing a corrupted heap. I saw this one before. this is in the boards.txt option under ESP32 Dev Module it is the only board definition with the -mfix-esp32-psram-cache-issue param i believe this may help UPDATE; i just noticed you are using the 240MHz so you can add the param to your boards.txt but just remember it changed anytime you update for the git repository |
Thanks for the tips @mickeypop. I dig a bit in the board.txt and add few options on the Wemos Lolin 32 to experiments; the changes I made are based on the ESP32 Dev Module as suggested. Board.txt changes under the lolin32 definition
Then I compiled the WiFiSmartConfig.ino sketch, and submit the SSID/Pass to the ESP32. It crash again, with and without PSRAM, that doesn't change anything. It just helped me to have a better understanding as I could activate the Debug Level to "Debug". The problem remains with the 3 boards I'm running the SmartConfig sketch. Serial trace after submitting the SSID/Pass
|
Based on the output, that board does not likely have PSRAM so the additional parameters for that are not necessary. |
Indeed, the PSRAM can't be initialised on boot as WROOM modules does not have PSRAM |
How do you have the app configured on your phone? Perhaps the ssid or password has an invalid character in it? |
@lbernstone, the ESPtouch app as well as ioT Smartconfig app does not have any setup, you just enter your SSID and Password and then you submit it. But, your idea of checking the password of the SSID was a good lead. I changed the password which was containing an _ @mickeypop, once received for the first time the SSID and Pass, unplug and restart the board make it connect to the network normally. Perfect! Thanks for sharing your code! 😉 |
glad it's working now |
I have the same problem. Unfortunately it didn't fix when i changed the ssid name and password of my router. Always stuck in ......... session |
@kemaldede, Have you checked that your router isn’t set in 5GHz mode? SmartConfig, and maybe ESP isn’t working in 5GHz WiFi mode. |
ESP32 only supports 2.4Ghz WiFi bands. |
thank you for fast response. I checked my router. The smart config example with esp-idf example code is working,but not with arduino |
[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. |
I m facing same problem please help me how to solve it |
@kundannakalank this state tracking is especially needed if you are using both cores and using a shared resource like I2C, SPI etc... i like to use mutex when working with multiple I2C devices. the panic.c is a kernel timeout. can you post your code? |
Hello,
Description:
I'm trying to make smartConfig running but I just got the board crash when the SSID/pass are provided to the board.
I tried the sketch post by @mickeypop about SmartConfig #1100 (comment), as well as the one provided as example by Espressif (example/WiFi/WiFiSmartConfig/WiFiSmartConfig.ino). My board configuration is based on ESP32 v1.0.4, Arduino IDE 1.8.10 and the latest version available of Arduino-esp32 library - all is running on macOS Mojave 10.14.6.
The location of the library is in sketches folder/hardware/espressif/esp32. To be sure of this I deleted it and reinstalled it by following the procedure indicated here: Installation instructions for Mac OS
Hardware:
Board: ESP32 Wemos Lolin 32 and ESPDuino 32
Core Installation version: 1.0.4
IDE name: Arduino IDE? 1.8.10
Flash Frequency: 80Mhz
PSRAM enabled: yes
Upload Speed: 115200
Computer OS: Mac OSX 10.14.6
Sketch
I check that my WiFi router is well configured in 2.4GHz as required by Espressif phone app to send the datas over the network to the ESP. I use ESPtouch app on iPhone to send the SSID/Pass to the ESP32 board.
I tried all of this on 3 different ESP board, 2 WEMOS Lolin EPS-32 and one EPS-DUINO32.
The sketch compile is OK, as the upload, but the connection does not occurs and makes the board crash.
I tried different method on
WiFi.mode();
but neitherWIFI_AP_STA
orWIFI_STA
seems changing anything.Does anybody have encounter this, as I'm pretty sure that smartconfig should work as well as the code provided by @mickeypop.
Debug Messages:
For the moment I can't get the Debug Level on those boards. But I'm working to find a better debug trace than the Serial.
Here the traces I'm getting on serial output for the code provided by @mickeypop,
And here the traces on Serial monitor for the sketch
WiFiSmartConfig.ino
which is also crashing as soon as the data provided by ESPtouch are received:It is not the same error, but both seems related to
wifi ipc
Does that ring a bell to anybody?
Expectation
Running smartConfig on ESP32 board and got the connection when sending SSID/Pass datas from ESPtouch app.
Thanks
The text was updated successfully, but these errors were encountered: