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

nRF52840 NVMC HAL

Hello

I am currently looking for the best method to write and read values in the flash. My values are 17 uint16_t arrays with 216 indices per array. I would like to store them using the functions listed in the NVMC HAL (nrf_nvmc_write_bytes / void nrf_nvmc_page_erase). I dont see a function to read pages in the flash, what would be a good method to do this?

I am not using a softdevice, so I cannot use FDS.

Waiting for your suggestions

Best regards

Tim

Parents Reply
  • Okay the implementation is done, but not working completely. When I start up the device, I check if something is written to the flash and copy those values to the RAM. Then the code reaches a loop where it waits for an event. However after a random time the controller generates a NRF_BREAKPOINT_COND. Error ID: 0x00004001

    Without the flash functions it works great. The software has been tested in a different project on the dev kit and I do not get the error over there.

Children
No Data
Related