Hi all,
it seems that the emulated EEP inside my D1Mini does not work.
In order to avoid misunderstanding I wrote following simple code.
Immediately after reset it print first 10 byte from EEP to serial.
So, it start a write cycle and a read cycle.
Always seems to work until I reset the device discovering that data weren't written..
I tried as well on a Wemos D1 Mini and it works as expected
Just to put some color to the question:
How long have you been playing with that ESP?
The sector holding the data needs to be re-flashed every time the changed EEPROM data needs to be saved (when you commit), thus will wear out the flash memory quickly even if small amounts of data are written
Flash has about 10,000 write cycles. if you write every 5 seconds you'll reach the 10,000 cycles in less than 14h. Did you leave your Wemos with that sketch running all night?
My ESP run since dicember but EEP code was written some day ago (not more than 300 re-write cycles).
It's very strange...
Wich toolchain are you using ? I'm using Visual Studio Code+Platformio.
May be I have to install Arduino and try it..
UPDATE:
I try with Arduino toolchain and nothing change.
So, I decide to try with another Wemos D1 mini pro: nothing change.
Hypotesis 'a'
May be I set wrong some parameter inside tool ?
I mean: 'Flash size', 'Vtables' etc..
Hypotesis 'b'
@ this point, I'm suspecting that purchased D1 device are 'fake' or different from original Wemos ones. But, if this is the case, I can't figure how a different HW implementation of ESP chip could be responsible of this behaviour...
Tool chain is the Aduino IDE of course. That is what one would expect if you post here. Don't say I do everything in the IDE, but that's the golden standard if it comes to the Arduino forum. Name / URL might give it away
B seems very unlikely to me, we would have heard from that.
A, maybe. I had everything set to the default of a Wemos D1 Mini and ESP8266 board def 2.7.4.