EEPROM seems to be sensitive to memory size w deepsleep
Posted: Thu Feb 04, 2016 6:13 pm
Hi all,
I'm writing an application that records sensor data and posts to MQTT. I wrote the firmware to read a topic for it's set up info which it then stores in EEPROM. I'm now trying to implement deepSleep to use less power. I'm seeing that when it reboots from deepsleep, the EEPROM data is garbage. HOWEVER, this only happens when I use the HUZZAH board or nodeMCU board settings (i have both). If I set it to generic ESP8266 with 512K (64 SPIFFS), it works. Anyone have any ideas where to start looking for the bug?
Rene'
I'm writing an application that records sensor data and posts to MQTT. I wrote the firmware to read a topic for it's set up info which it then stores in EEPROM. I'm now trying to implement deepSleep to use less power. I'm seeing that when it reboots from deepsleep, the EEPROM data is garbage. HOWEVER, this only happens when I use the HUZZAH board or nodeMCU board settings (i have both). If I set it to generic ESP8266 with 512K (64 SPIFFS), it works. Anyone have any ideas where to start looking for the bug?
Rene'