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

nRF51822 : enable protection against readback in app doesn't work

Dear Nordic Developer Zone,

I am trying to enable the readback protection in the main function just before the "wait for interrupt" sd_app_event_wait function using the command

NRF_UICR->RBPCONF = (UICR_RBPCONF_PALL_Enabled << UICR_RBPCONF_PALL_Pos);

but it doesn't work. When I check the register value in the Keil Vision IDE in debug mode, I can see that the register PALL is always 0xFF and not 0x00 as specify in the nRF51822 documentation chapter 8 (MPU) p25.

Is it the right place to enable the readback? Is it the right syntax to enable this feature? Is it possible to activate the readback protection in the main function?

Works using nRFgo Studio, but I would like enable this feature in the app code.

Berst regards

Related