nRF5 SDK v11.0.0
Experimental: Flash Data Storage

The Flash Data Storage (FDS) module is a minimalistic file system for the flash storage on the chip that minimizes the risk of data corruption and simplifies your interaction with the persistent storage. It does this by organizing data in files, which consist of one or more records. The records contain the actual data and can be written, deleted, updated, or retrieved.

The concept of treating data as files provides a much higher level of abstraction than, for example, the Persistent Storage Manager module. You can use the FDS module without detailed knowledge of the actual data format that is used internally. Instead, you can just work with files and records and use the module as a black box.

The module has been designed to provide the following benefits:

FDS uses Experimental: Flash Storage as backend to write to flash. Flash Storage, in turn, relies on the SoftDevice to execute the write. Flash Data Storage supports synchronous read operations and asynchronous writes.

Note that FDS and Experimental: Flash Storage might replace the Persistent Storage Manager in the future, and new features will be added mainly to FDS and Flash Storage. If you currently use the Persistant Storage Manager in an application, you should therefore consider switching to FDS or Flash Storage, depending on the level of abstraction that you need.

See Functionality for an explanation of the functionality that FDS provides. Storage format shows how records are stored in flash. Usage presents code examples and shows how to use FDS in an application.

Documentation feedback | Developer Zone | Updated