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?