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

nRF51822: RBPCONF only works after power cycle

Hi All,

We're wirelessly giving manufacturing information to our devices, and when we're done we want to set the readback protection. We do so like this:

nrf_nvmc_write_word(NRF_UICR->RBPCONF, (UICR_RPBCONF_PALL_Enabled << UICR_RBPCONF_PALL_Pos) | UICR_RBPCONF_PALL_Msk);

and then we reboot: NVIC_SystemReset();

However, we're still able to attach with a debugger and read memory at this point in time. Only after a power cycle does it appear to take effect. This is undesirable--the batteries are at this point in time soldered already.

Thoughts?

Parents Reply Children
No Data
Related