Forum Discussion
Altera_Forum
Honored Contributor
13 years agoWriting/Reading into/from EPCS Flash Device
I am sorry for starting a new thread for this when there are some old threads of me and other in the same topics. I am not getting a response for those as yet. I am greatful to the forum as i have so...
Altera_Forum
Honored Contributor
13 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.