-
Notifications
You must be signed in to change notification settings - Fork 7.6k
(Possibly NVS related) crash on boot #1347
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
You don't get any errors from erase_flash or uploading firmware? It sounds like your spi_flash may be damaged. The initialization code will open nvs to try to get your wifi config. |
@lbernstone That could explain it, but what would cause it to be damaged? Hardware issue or corrupt data being pushed to it?
|
erase_flash should definitely have some output and take some time. It is the best way to ensure that your nvs gets cleared if corrupt. Not sure exactly what it looks like in Windows CMD (you may need to explicitly call python esptool.py), but in linux I get the following:
|
@lbernstone Progress! Turns out I had mistakenly installed esptool from the Ubuntu APT repositories, without realising that version doesn't work very well... So reinstalled using PIP and now I'm getting erase_flash output. Erased successfully, re-flashed and its all working. Thanks for your help, glad its not a bigger issue. |
Glad to help. Please close the issue! |
Hardware:
Board: ESP32 Dev Module
Core Installation/update date: 10/apr/2018
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 115200
Description:
The chip was running my project code which makes use of the Preferences library and it seemed to work fine but after I came back to it at a later date, it didn't work... After checking the serial console I found that it is now crashing with the output shown below. I tried replacing the application code with the "Blink" and "BareMinimum" examples but got the same result. I tried esptool erase_flash which gives no output so I can't tell if it did anything, but it certainly didn't fix it.
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: