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.84k stars 3.2k forks source link

cannot load eeprom information at boot #227

Closed viknet365 closed 5 years ago

viknet365 commented 5 years ago

Hello again all of you. I restarting doing some dev on Wled, (I want to implement the KNX protocol, but this issue is unrelated). When compiling from the source with the arduino IDE (1.8.10), wled cannot load eeprom settings see debug info at the end of the message. Fortunately, it read correctly if flashed using the bin provided I understand it is a problem from my dev environment but I cannot ( yet ) pinpoint the issue. If any of you had it, please reply. otherwise I will update with the solution once found.

Best regards to all the team

---WLED 0.8.5 1909122 INIT--- esp8266 2_5_2 heap 33616 LEDs inited. heap usage ~184 Load EEPROM Settings invalid, restoring defaults...cset HHMMSS result 21 0 25 0 31 0 done CSSID: Your_Network NO AP C_NC C_NC Can't connect. Opening AP... Connected! IP address: (IP unset) HTTP server started Ada ---DEBUG INFO--- Runtime: 10000 Unix time: 10 Free heap: 27384 Wifi state: 0 State time: 10000 NTP last sync: 999000000 Client IP: (IP unset)

viknet365 commented 5 years ago

completely unrelated to WLED, It also does this with an older arduino IDE and basic eeprom sketch.

viknet365 commented 5 years ago

an issue has been opened to the esp8266 for arduino maintainer: https://github.com/esp8266/Arduino/issues/6551

viknet365 commented 5 years ago

For your information since esp8266 core 2.5.1 writing to the eeprom is randomize over all the flash to minimize wear.

This imply that when using eeprom, the size of flash set in your IDE is CRUCIAL. I used a 4MB settings with a 2MB board (and this information was difficult to find).

Please always try with lowest memory settings (1M)