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

 

Parents Reply
  • 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 ")

    custom_data_manager_config.p_area = (const flash_manager_page_t *) (((const uint8_t *) flash_manager_recovery_page_get()) - (ACCESS_FLASH_PAGE_COUNT * PAGE_SIZE) - (NET_FLASH_PAGE_COUNT * PAGE_SIZE) );


    Thank you 

Children
Related