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

Difference between persistent storage libraries

In the nrf5 sdk (version 11.0.0) there are three different modules which, as near as I can tell, do the same thing. These are:

  • pstorage
  • fstorage
  • ble_flash

All three look to be used in various different examples, and when bringing in ble modules they all seem to be required.

What are the differences between these modules? Under what circumstances do I need to include each one?

Parents
  • Fantastic overview, thank you! It's good to have it put in perspective of both complexity and ancestry.

    When bringing in various components under the components/ble/ directory, I find myself required to bring in both pstorage and fstorage (both are used by different components). Is this just the way things have to work, or am I doing something wrong by (say) bringing in outdated code that I shouldn't be using?

Reply
  • Fantastic overview, thank you! It's good to have it put in perspective of both complexity and ancestry.

    When bringing in various components under the components/ble/ directory, I find myself required to bring in both pstorage and fstorage (both are used by different components). Is this just the way things have to work, or am I doing something wrong by (say) bringing in outdated code that I shouldn't be using?

Children
No Data
Related