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!

Parents
  • Hi,

    You are right that FDS is only intended to be used with the internal flash. That is the only thing the Flash Storage library provide backends for (either directly or via SoftDevice API's), and it is the only thing we have tested, and what have been the focus for the architectural decisions. I am not aware that anyone have implemented a fstorage backend for external flash and used it with FDS, but it might be possible. I expect you will have to make some adjustments though, as the underlying assumption of both fstorage and FDS is that it is using the internal flash in the same address space etc. (There is no memory mapping for external flash in the nRF52832).

Reply
  • Hi,

    You are right that FDS is only intended to be used with the internal flash. That is the only thing the Flash Storage library provide backends for (either directly or via SoftDevice API's), and it is the only thing we have tested, and what have been the focus for the architectural decisions. I am not aware that anyone have implemented a fstorage backend for external flash and used it with FDS, but it might be possible. I expect you will have to make some adjustments though, as the underlying assumption of both fstorage and FDS is that it is using the internal flash in the same address space etc. (There is no memory mapping for external flash in the nRF52832).

Children
Related