uM2(+): data logging - cheap fast & easy


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11980
Posted: 03:25am 27 Mar 2016      

Do Serial Flash Memories not have page boundaries to worry about like EEPROM?


Yes pages for writing are on 256-byte boundaries. My code takes care of all this for you without wasting any space.

The 4K "page" is the minimum that can be erased but I only use full chip erase.

Flash memory is erased to all "1s". Writes convert the relevant 1s to 0s. So I can write the same data to a page with no effect or I can write additional data to a page that is part written by reading what was there, updating with the new data and then re-writing.