Hi, my device is NRF51822 and i'm trying to enable Readback protection. In 'main.c' file i have added this code line:
const uint32_t UICR_RBPCONF __attribute__((used,at(0x10001004))) = 0xFFFF0000; //NRF51
When i Download code using nrf52DK (PCA10040), the RBP is enable, RBPCONF = 0xFFFF0000 on debug, so everything it's ok.
When i Donwload code using ST-Link, the RBP dont enable, and RPBCONF = 0xFFFFFFFF on debug. Download it's working, any other modification are downloaded to NRF41422 with sucess. Any ideas what is happening?