Hi,
I want to activate readback protection on nRF51822, in a simple project without bootloader without softdevice.
My compiler is GCC and the const uint32_t UICR_RBPCONF __attribute__((at(0x10001004))) __attribute__((used)) = 0xFFFF0000;
isn't compatible.
Like this post (here), I have added in the .hex file
:020000041000EA
:10100000FFFFFFFFFF00FFFFFFFFFFFFFFFFFFFFEF
:00000001FF
At the end of the file.
The result is partially good: I can't readback the flash memory, it's OK... but now, I can't eraze the chip and I can't write again to the flash !!!!
What's the good hex injection to have only a single read protection, but possiblity to rewrite the flash ?
Regards Gaétan