Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIf you might have to save multiple items something a little more complex is worth the effort.
I used a 24bit 'tag' and 8 bit 'length' in one 32bit word, followed by 'length' data words. Update sequence: 1) Find the end and write in the new length (leaving the tag 0xffffff) 2) Write in the new data. 3) Modify the new tag. 4) Change the old tag to zero. That will survive most interrupted write sequences.