Thank you!
Thank you!
Explore... Chat... Share...
rudy wrote:Once you change a location then the only way to change it is to erase the whole sector.
I'm not familiar with writing to these flash chips but this is what I am pretty sure is happening. The erased state is all bits having 1s in them. When you program a byte what is happening is the bits that need to be 0 is being programmed and the 1s are left alone. Once a bit is programmed as a 0 the only way to make it a 1 is with an erase cycle. Erase can not be done on an individual location, only a whole sector.
What I had done with eeproms long ago was to program a set of data. When I had to change it with new data I would grab the next set of location above what I had just programmed. On the old data (an index pointer) I would write all 0s indicating that those locations had been used and are now old. I could do a second write to those byte locations but I could only make 1s into 0s. I was doing this because of the limited number of writes I could do on a location.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]