This is a project using nRF52832.
On nRF connect SDK, we want to ensure that firmware does not get shipped without read-back protection enabled. During development I have CONFIG_NRF_APPROTECT_LOCK=n in prj.conf, as otherwise debugging isn't possible. This is a risk, as we have to ensure it's rebuilt with prj.conf changed. I added the following to my code which gets called if
NRF_UICR->APPROTECT isn't 0xff: