-
Notifications
You must be signed in to change notification settings - Fork 639
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
Factory reset seemed to crash device. #2433
Comments
Factory reset itself is pretty basic. We keep settings as a raw 4KiB blob in ram, a erasing it's only a matter of writing 0xff into it and saving to the flash espurna/code/espurna/storage_eeprom.h Lines 54 to 58 in 4d157cc
And there's not even a boot log from the esp8266 itself? Monitor with 74880 speed should still show something like this
It could be something with the hardware, but I'd check this first to see if the fw is loading at all. |
@ 74880 and 9600 I get the following :-) Every few seconds putty gets another set of random characters.
|
Fixed. I have been using 'NodeMCU-PyFlasher-4.0-x64' to flash, but I went back and tried 'ESPEasy flash tool'. This allowed me to get the device working again. :-) Strange! |
Only 74880 matters, and only on boot since further reboots switch into 115200 set by us. i.e.
Good that it is not completely broken. This got me a bit suspicious about the WebUI OTA though. With something like ArduinoOTA or NOFUSS, it sends the file with a md5 hash of contents (aka signature, ensure file is the same on both ends), so esp8266 can compare the result when written to the internal flash. In theory it is possible to write some garbage to some of the sectors. e.g. loose strings, or some functions. |
As the device was not booting correctly after trying the WiFi reconnect code additions, like you said, maybe something got corrupted when I did the factory reset. Anyway, thanks for the help. I'll get back to testing the latest code over the next few days. |
@mcspr
Hi
Can you check what happens when the factory reset code is run? Ref the comment below, after carrying out a factory reset from the webUI I lost access. Even though the built in AP did appear to connect to, I wasn't able to re-configure or get to the webUI. Re-flashing via serial was the only way to fix it.
Originally posted by @davebuk in #2422 (comment)
I have just tried cb23c94 on a HNC BNC50 wifi switch and although it initially connected I lost connection. I didn't have the relay showing in the webUI so decided to factory reset the device. This time I couldn't access the built in wifi AP at all. Physical button didn't switch the relay and the LED is hardly lit at all. I've checked the 240VAC and 3.3VDC so don't think the device has electrically failed.
I have re-flashed a basic core-webUI .bin and a known previously working .bin I used on this device. The USB to serial connects and says it has loaded the firmware, but the built in AP never appears.
I tried opening a putty serial connection but it doesn't connect. Could the memory chip have randomly failed or could the factory reset have caused an issue?
The text was updated successfully, but these errors were encountered: