This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Flash data storage with external SPI flash

Hi,

I need some very simple file system to use on an external SPI flash. I gave a quick look at Flash Data Storage and it should be ok for me. I am not sure though why it is often referred to it as an "internal flash only" solution. If I understand correctly, FDS is based on Flash Storage which supports different backends. Assuming I implement a working backend for my SPI flash, is anything preventing it from working? I see that the most commonly used FS on embedded devices is some form of FAT FS, but I fear it may just be a bad choice due to non existing wear levelling, poor power-off resilience etc.

Thanks!

  • you mean,it requires the  spi driver to be  in blocking mode ?

    i think you have saved some of my time,

    have you tried it ?  it will be very helpful if you can share the source of that information.

    thaks for the update.

  • Hi, I have not tried it but just browsed the code. Basically it works like other FS implementations, there are also some FatFS out there. The problem is that they all expect to operate on SPI with blocking functions. I've tried as much as possible to avoid blocking mode in my drivers, and I don't want to go back. The only solution I see is to add an RTOS and implement blocking mode using mutex/signals and post events from interrupts. While this is nice, I'd prefer to avoid an RTOS right now. So, basically I've found no real alternatives.

Related