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

migration guide for pstorage?

I have some non-volatile storage routines that I have written before, but the new SDK V5.0.0 has this pstorage module that is supposed to replace it, right? How do I migrate safely from using ble_flash to pstorage?

It seems like ble_flash is using blocking routines but the pstorage is using some sort of command queue with a callback. Should I set a flag from within the callback and have a wait loop in my main thread checking that flag?

Is migration even neccessary?

Parents
  • Hi Joseph,

    pstorage is available in s310_nrf51422_1.0.0-2.alpha (this softdevice based on S110 v6.0.0 for BLE part).

    As you may notice, I was incorrect in the reply on Nov 29th. ble_flash is not available when the softdevice (S110 v6.0.0 or s310_nrf51422_1.0.0-2.alpha) is active. Access to NVMC is blocked by these softdevices.

    I am sorry for the confusion.

Reply
  • Hi Joseph,

    pstorage is available in s310_nrf51422_1.0.0-2.alpha (this softdevice based on S110 v6.0.0 for BLE part).

    As you may notice, I was incorrect in the reply on Nov 29th. ble_flash is not available when the softdevice (S110 v6.0.0 or s310_nrf51422_1.0.0-2.alpha) is active. Access to NVMC is blocked by these softdevices.

    I am sorry for the confusion.

Children
Related