Hi,
I’m working with the Raytac BC833M module (nRF52833) and programming it via nrfjprog in a batch script.
I need to:
- Program my application firmware
- Configure a UICR register (NFCPINS) to disable NFC and enable GPIO usage for I2C
- Enable readback protection (APPROTECT)
My issue is I am writing to the NFCPINS register (UICR) at:
0x1000120C
using:
nrfjprog --memwr 0x1000120C --val 0xFFFFFFFE
This works correctly — I can confirm the value is written using --memrd, and it persists after reset.
However, when I then run:
nrfjprog --rbp all
the register is reverted back to:
0xFFFFFFFF
which re-enables NFC functionality and breaks my I2C communication.
What is the correct way to enable readback protection without overwriting other UICR registers like NFCPINS?
Additional Info:
- Device: nRF52833 (BC833M)
- Toolchain: nrfjprog (latest version)
- Programming via J-Link