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

pstorage, device_manager_peripheral.c and fstorage/fds

SDK11, nRF51422.

Is it safe to use pstorage and fstorage at the same time? I want to use fds for data storage in my firmware, but device_manager_peripheral.c requires pstorage. Briefly looked at the source code, I don't think they will work together.

What is the solution to use both device manager and fds?

Thanks

Paul

Parents
  • Hi Paul,

    It's possible to use both pstorage and fstorage at the same time. However we don't recommend it and suggest you to move to the latest peer_manager and fds instead of pstorage and device manager.

    If you still want to use pstorage and fstorage, make sure they don't overlap each other in the flash area that they use. You can either modify pstorage (PSTORAGE_DATA_START_ADDR) or fstorage area ( the FS_PAGE_END_ADDR )

    They both want to be located at the end of flash right before bootloader (if any) if you use both, you would need to move one away down and they don't overlap.

Reply
  • Hi Paul,

    It's possible to use both pstorage and fstorage at the same time. However we don't recommend it and suggest you to move to the latest peer_manager and fds instead of pstorage and device manager.

    If you still want to use pstorage and fstorage, make sure they don't overlap each other in the flash area that they use. You can either modify pstorage (PSTORAGE_DATA_START_ADDR) or fstorage area ( the FS_PAGE_END_ADDR )

    They both want to be located at the end of flash right before bootloader (if any) if you use both, you would need to move one away down and they don't overlap.

Children
Related