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

To erase persitent data from NVMC

Hi,

I am developing an small application which helps to erase the persitent memory

mesh_stack_persistence_flash_usage(const uint32_t ** pp_start, uint32_t * p_length);

erase_as_much_as_possible(const flash_operation_t * p_erase_op, ts_timestamp_t available_time, uint32_t* p_bytes_erased)

I am using above two apis..to erase the data but it was stopping at this point

/* Turn off flash erase enable and wait until the NVMC is ready: */
NRF_NVMC->CONFIG = (NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos);

could you please suggest me the answer..Thanks in advance

Related