Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.57k stars 3.12k forks source link

NODE MCU .09 - settings don't save, multiple releases #431

Closed highground88 closed 4 years ago

highground88 commented 4 years ago

Firstly great work - I'm obviously having quite a big issue but I hope to be able to use this for our Christmas tree lights soon, as it works great! (temporarily)

I have a Wemos D1 Mini with 4mB flash - and have tried multiple upload methods (esptool, esphome-flasher, Arduino IDE), however none of these methods provide me with a device that the settings persist after a reboot.

I have tried esptool.py erase_flash as per #271 , various SPIFFS settings, upload speeds, and also compiled my own 0.8.6 binaries in addition to WLED_0.8.6_ESP8266.bin, WLED_0.8.6_ESP8266_ledpin4.bin, & wled_0.8.6_ESP8266_lwip1.bin (and also bins from 0.8.5).

I've also tried using in IDE using '1.4 Higher bandwidth' , with no change.

I'm pretty much out of ideas .... is there anything else I can try?

 esptool.py v2.8
Serial port COM9
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:1xxxxxxxxx
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Flash params set to 0x0220
Compressed 535136 bytes to 368264...
Wrote 535136 bytes (368264 compressed) at 0x00000000 in 32.6 seconds (effective 131.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
highground88 commented 4 years ago

Just additionally if it helps .... I've migrated through a bunch of different versions, and now the OTA update constantly results in 'Failed updating firmware!'. Tried with fresh 0.8.5 and .6 bins on both versions (upgrade/downgrade).

Something somewhere on this board has been messed up?

Mariu86 commented 4 years ago

You can compile the last dev version 0.9 to see how it's working must be a more stable version. I tried to compile but I have some library errors .

highground88 commented 4 years ago

Just compiled dev version 0.9, only changes I made were to Wifi. Still not holding new setting changes. Also get "WLED ERROR 2" pop-up in GUI.

(Re library errors, I just D/L the missing libraries from Github).

Arduino IDE upload options: IMGUR

If I go into CONFIG->LED PREFERENCES, and change GRB to RGB, then back, into SECURITY & UPDATES, and click SAVE & REBOOT, I get this from the IDE debug:

---DEBUG INFO---
Runtime: 20003
Unix time: 20
Free heap: 26888
Wifi state: 3
State time: 0
NTP last sync: 999000000
Client IP: 192.168.20.132
Loops/sec: 8430
---DEBUG INFO---
Runtime: 30006
Unix time: 30
Free heap: 26888
Wifi state: 3
State time: 0
NTP last sync: 999000000
Client IP: 192.168.20.132
Loops/sec: 8560
---DEBUG INFO---
Runtime: 40009
Unix time: 40
Free heap: 26888
Wifi state: 3
State time: 0
NTP last sync: 999000000
Client IP: 192.168.20.132
Loops/sec: 8574
---DEBUG INFO---
Runtime: 50012
Unix time: 50
Free heap: 26888
Wifi state: 3
State time: 0
NTP last sync: 999000000
Client IP: 192.168.20.132
Loops/sec: 8572
MODULE RESET

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vbc204a9b
~ld

---WLED 0.9.0-dev 1912051 INIT---
esp8266 2_6_2
heap 33864
LEDs inited. heap usage ~184
Load EEPROM
Settings invalid, restoring defaults...done
Ada
Access point disabled.
Connecting to Botnet...

Connected! IP address: 192.168.20.132
Init STA interfaces
mDNS started
1
Aircoookie commented 4 years ago

@highground88 Hi and welcome! You are probably using ESP01 or another board with only 1MB flash. "WLED error 2" means the settings could not be written to flash. Try selecting "Generic ESP8266" in the boards menu and select Flash (1MB, FS none) and saving should work!

highground88 commented 4 years ago

Wow.... @Aircoookie .... I'm very sorry..... I thought I'd check the chip so I just opened up the enclosure and I've actually put a random NodeMCU 0.9 board with a ESP-12 (I think) into this. You are spot on. I should sleep more.

That said - I take it this board won't be any good past 0.9.0 anyway based on your notation re SPIFFS?

Sorry again for everyone that used some brain power trying to work out my problem!!!

highground88 commented 4 years ago

That all said and done - I still cant get this to work even at 1M no SPIFFS.

The 0.9 version goes on, but as soon as any changes are made, I get boot loops. Using a binary for various ESP8266 etc results in again not retaining data (as I cant control uploads settings perhaps?)

stale[bot] commented 4 years ago

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!

Skyking721 commented 4 years ago

NodeMcu Error 2 again w/ latest Wled release. hmmm

Aircoookie commented 4 years ago

@Skyking721 what binary/compile settings did you use. Make sure to use the one without 1M in the name