This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Example code for using Non volatile memory

I want to store a block of data in nRF51x22. I tried the following:

void HalStoreNVMBlock(uint32_t size, uint8_t* pBuf) { nrf_nvmc_page_erase(NRF_UICR_BASE); nrf_nvmc_write_bytes(NRF_UICR_BASE, pBuf, size); }

but after this code was executed the first time, I could not reprogram the device from Keil. I had to erase all using nRFgo Studio. Is there a code example for doing this?

Parents Reply Children
No Data
Related