Forum Discussion
Altera_Forum
Honored Contributor
12 years agoYou do need to sort out a scheme to limit the number of erase cycles (to improve the lifetime of the flash).
One possibility is to use a type-length-data encoding to create a serial data stream in a flash block. Terminate on a type of all 1s - allowing items to be appended, and 'erase' old items by changing the type to 0. I did this with 32bit flash (paired devices) using a 24bit type and 8 bit length (of 32bit words). You then only need to do an erase cycle when the sector is getting full.