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

Storing values using Flash-manager

Hi Team

I would like to store a simple integer value in flash and read it back after a power cycle. I already studied the library Flash-manager of the nRF5 SDK for Mesh v1.0.1. Since I found no example code this seems quite hard to do. Can you give us some example lines of code to write and read simple values to/from flash?

kind regards

Gerry

 

  • Hi

    I tried to implement this on the server-side of the light switch example with nrf5-SDK-for-mesh 320,

    There some strange behavior when read and write.

    I added flash manager instance and I think it disturbs the mesh flash manager instance then the program collapse.

    Does anyone succeed adding the flash manager to the server?

    Thanks.

  • Hello, 

    Does anyone have example with Mesh SDK 4.0. It seems that

    dsm_flash_area_get()

    was removed. I don't know how to handle that. 

    Thank you very much

  • Hello, 

    It's working with flash_manager_recovery_page get() but after a reset I have an error ( "Data in the persistent memory was corrupted. Device starts as unprovisioned ")



    Thank you 

  • Hi, I have the same problem, did you solve it?
    If so, you would have an example of the changes needed for Mesh SDK 4.0.

    Thanks in advance

1 2 3 4