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

NVMC of NRF52810

The NVMC writting functions hasn't return values, 

void nrf_nvmc_write_bytes(uint32_t address, const uint8_t * src, uint32_t num_bytes)

Does it mean that all internal FLASH writting operations will be successful? Except for erasing times to the upper limit?

In other words, for the permanent storage of user data, there is a relatively stable approach. Thanks!

Parents
  • Hi,

    Flash writes can become corrupted if you experience unexpected resets due to power loss, etc.   You may consider appending a checksum to your data to have a way of verifying the integrity. Also note that you will not get direct access to the NVMC if you use the Softdevice (nordic bluetooth stack). In that case, you need to use the Softdevice flash API, preferably through the fstorage or fds library. 

Reply
  • Hi,

    Flash writes can become corrupted if you experience unexpected resets due to power loss, etc.   You may consider appending a checksum to your data to have a way of verifying the integrity. Also note that you will not get direct access to the NVMC if you use the Softdevice (nordic bluetooth stack). In that case, you need to use the Softdevice flash API, preferably through the fstorage or fds library. 

Children
Related