Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

V1.5.6 constantly reboots #73

Closed
Gert05 opened this issue Mar 12, 2019 · 22 comments
Closed

V1.5.6 constantly reboots #73

Gert05 opened this issue Mar 12, 2019 · 22 comments
Labels
bug Something isn't working

Comments

@Gert05
Copy link
Contributor

Gert05 commented Mar 12, 2019

Problems in paradise. I tried to upgrade from 1.5.4 to 1.5.6:
compile ok
burn ok
startup in AP mode ok
set wifi credentials ok
reboot ok
LED stops blinking

So far so good & as expected, But then after < 1min:
a reboot
all settings are lost
device seems to keep rebooting every half minute
I've tried multiple new installs, but result stays the same.
Have reverted back to 1.5.4, which is now running fine.

@Gert05 Gert05 added the question Further information is requested label Mar 12, 2019
@proddy
Copy link
Collaborator

proddy commented Mar 12, 2019

I've seen this behavior before. My dev branch contains some extra code to capture the stack dump so I can find why it keeps resetting. Its something to do with the new JSON library (or my implementation more like). Thanks for pointing this out. Still investigating...

@proddy proddy added bug Something isn't working and removed question Further information is requested labels Mar 12, 2019
@lobocobra
Copy link

I just loaded code 1.5.6 and I do not have any reboot issues.
=> Did you try a SET ERASE one time?

@proddy
Copy link
Collaborator

proddy commented Mar 13, 2019

I'm getting constant restarts too, both with 1.5.6 and 1.5.7 and still debugging. I'm comparing the platform libraries to see differences between espressif8266 2.0.4 and 1.8.0

@lobocobra
Copy link

lobocobra commented Mar 14, 2019

hmm after I restarted pio home/visual code and uploaded a firmware, I have the same issue....
=> so it might have really to do with libraries

I also loose now the config and before it was fine and I loaded 1.5.6 like 20 time with minor changes.

@proddy
Copy link
Collaborator

proddy commented Mar 14, 2019

@lobocobra I found a workaround for the wifi restarts. The issue with losing the config, can you describe the steps to reproduce?

Please try with 1.5.7 from the dev branch for both issues, thanks.

@lobocobra
Copy link

Thanks! All works now with version 1.5.7.
=> also the -3200° message is gone and all looks stable now, including the config.
=> What might be an interesting observation (in case this comes up again), is that my additional variables were not affected by the data loss. Means only the config of WIFI,etc was gone, but not my newly saved variables. So in case this is popping up again, we might want to check if the code overwrites spiff with empty data?

Anyhow, I would say that the code could go life.

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 15, 2019

Tried 1.5.7 dev; could not get it to run - mainly because the ESP wouldn't reliably connect to wifi after credentials were set.
Ping with lots of losses; no telnet connection possible over wifi.
Back to 1.5.4 which runs normal.

@proddy
Copy link
Collaborator

proddy commented Mar 15, 2019 via email

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 15, 2019

You mean the Espressif 8266 v2.0.4 platform? Well, PlatformIO was automatically upgraded to that version, but the platformio.ini for 157dev still specifies 1.8.0. All I did was adapt the .ini for the d1_mini_pro.

Processing d1_mini_pro (platform: espressif8266@1.8.0; board: d1_mini_pro; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini_pro.html
PLATFORM: Espressif 8266 > WeMos D1 mini Pro
HARDWARE: ESP8266 80MHz 80KB RAM (16MB Flash)

@proddy
Copy link
Collaborator

proddy commented Mar 15, 2019

Yes, there are a few known issues with the latest 2.5.0 arduino core which is why the WiFi keeps dropping out. There are not crashes or WDTs as first expected. Something related to the signal power, My dev version reverts back to the old 2.4.2 libraries in the platformio.ini-example which you probably missed, but now OTA is not stable. So for now your platformio.ini file it should say platform=espressif8266@1.8.0 until I've fixed it.

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 15, 2019

Well, I did a compile with ..@1.8.0 (see previous comment for the copy/past of the compile output...) and still have the unstable wifi. As far as I can see I run both 154 and 157dev on ..@1.8.0 but only 157dev has unstable wifi.

@proddy
Copy link
Collaborator

proddy commented Mar 15, 2019 via email

@proddy
Copy link
Collaborator

proddy commented Mar 15, 2019

@Gert05 fancy guinea-pigging that latest 1.5.7 dev build? I think I found a problem for the wifi dropouts

@proddy
Copy link
Collaborator

proddy commented Mar 16, 2019

bumped to 1.6.0. Been running for >24hrs with no resets or timeouts so think its ok now. Using the latest 2.5.0 core libraries.

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 16, 2019

This is turning messy... Tried the dev build but still had wifi problems. Tried going back to 154 but even that is no longer possible. Must have thoroughly messed up the d1_mini_pro. Back to the soldering iron now for a new d1_mini_pro.
Any suggestions how to completely erase a board via PlatformIO? Cannot connect to it over wifi/telnet any more.

@proddy
Copy link
Collaborator

proddy commented Mar 16, 2019

plug it into your PC, then pio run -t erase. Then upload the firmware again.

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 16, 2019

OK. Apparently bricked the old d1_mini_pro.
On a new one still having wifi problems with 160-dev. Able to connect to AP,set wifi, reboot, but not connecting to wifi; resetting; loss of settings.
Now happily back on 154.

@SpaceTeddy
Copy link
Contributor

@Gert05 ,
I had also massive trouble with V1.5.6. I saw also, reconnects, bad pings and very slow telnet performance. I went back to 1.4.1 (my latest stable version) and today straight forward to 1.6.0b_dev without any setting erase. (#70)
It runs good and fast again.
hope that helps

@proddy
Copy link
Collaborator

proddy commented Mar 17, 2019

@Gert05 I suspect its the EEPROM code since it has 16MB of flash compared to 4MB on the D1 Mini. Make sure in your platformio.ini you are not bulding with -DCRASH and that you are using the latest core libs with platform=espressif8266. If it still doesn't work I'll get a Pro and run some tests. Thanks for hanging in there!

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 19, 2019

Strange... I seem to have brought the dead D1 mini pro back to life... :-)
Now running 1.6.0b3 without (wifi or other) problems on this previously dead wemos.

@Gert05 Gert05 closed this as completed Mar 19, 2019
@proddy
Copy link
Collaborator

proddy commented Mar 19, 2019

LOL. Was it the platformio.ini file that needed adjusting?

@Gert05
Copy link
Contributor Author

Gert05 commented Mar 19, 2019

No, only mods to the platform.ini I make are replacing d1_mini by d1_mini_pro.
In my opinion nothing has changed. I know that sounds stupid, but I have no explanation...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants