Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Problem with fstorage changes in SDK v14

I'm migrating an existing application from SDK v13 to SDK v15 and have run into a minor issue with the fstorage changes introduced in SDK v14.

My application uses both fds and fstorage libraries. In v13, this worked because fstorage figured out for itself where to locate FDS and my own flash areas. In v14, one is required to specify flash start/end addresses in nrf_fstorage_t which would logically be just below the area used by FDS, but there is no way to determine which memory is used by fds.

The obvious solution is an FDS api which returns the starting address of flash used by FDS (m_fs.start_addr). I can implement this myself by hacking fds, but want to bring this to the attention of the Nordic developers in the context of the Mesh SDK which is completely missing the functionality previously provided by fstorage (this thread).

Succinctly, concurrent use of fds and fstorage is a common use case for which we need appropriate api's.

Thanks,
Richard

Related