Re: Battery-Backed file system in RCM6700

"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]> Thu, 24 Sep 2015 21:08:59 -0700
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
Tee,

The RCM6700 has a serial flash for non-volatile storage, and that supports the FAT filesystem for multiple files.  Depending on what sort of data you're storing (a single large log file), it might be easier to just manage storage on sequential pages of the flash.  Take a look at the SFLASH and FAT samples to see what's possible.

Another option would be to use the serial flash for long-term storage, and keep some buffers for data in the battery-backed RAM.  When a buffer fills, write it out to flash and clear it once you've confirmed the write.

On power up, check the state of the file on flash and the state of the buffer to check for the race condition of a partial or complete write to the flash and losing power before you can clear the buffer in BBRAM.

-Tom


On Aug 25, 2015, at 9:09 AM, taiwo_ososanya-/[email protected] [rabbit-semi] wrote:
> I have been working with the RCM6700 (Rabbit 6000) for some time now, and I just got to the point where I will need to use a battery-backed file system, as I will be writing to this file frequently and I need the additional safe-storage even during power failures, but the BBRAM does not seem to support the FAT file system.