NRF51 – fstorage/pstorage for storing data in flash

Sysprogs forums Forums VisualGDB NRF51 – fstorage/pstorage for storing data in flash

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21408
    Frank
    Participant

    Hi,

    I am trying to store data in the flash for persistent storage but when I try to include “fstorage.h” and calling fs_init() the build fails telling me the function doesn’t exsist.

    I checked the fstorage tick box under VisualGDB Project Properties – Embedded Frameworks.

    The same goes for the pstorage.h file.

    They do exist in the BSP so I copied them into my project.

    But when I try to call “uint32_t retval2 = pstorage_clear(&block_0_handle, 48);” or “pstorage_update(&block_0_handle, source_data_9, 16, 0);” the callback always returns with NRF_ERROR_INVALID_ADDR

    fstorage does work when you add it to your project manually. So cheers =)

    #21410
    support
    Keymaster

    Hi,

    Thanks for letting us know. We are currently testing the new BSP based on the SDK 15.0 and might be able to fix this before releasing it.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.