AnsweredAssumed Answered

Keep track of current record location for an external flash memory

Question asked by RomeyRC on May 30, 2014
Latest reply on May 31, 2014 by Jack Peacock
I am working on STM32F103 with an external flash memory chip via SPI. I use a very simple data format for storing data onto the flash memory, each record is 16 bytes, all records are saved sequentially. The problem is how to keep track of the current record location. I need to keep the data as long as possible, regardless resets and power cycling. When it reaches the full capacity it can overwrite the oldest records.
I can't use backup registers because no backup battery available in my case. I can try to implement a file system but my data structure is very simple, so a file system will be my last resort. I can keep the current record address at a fixed location on the flash memory, and update it every time I write a new record. But the flash memory has a limit of 100,000 program/erase cycles. This seems to be a classical problem with flash memory, I wonder if there is a simple solution.  

Outcomes