nrf52833-dk read protection

Hi,

I bought a second nrf52833-dk. After I program my code on it, I can't debug or read the code because read protection is on. This is strange, because I didn't program it like that. I program the board like this:

nrfjprog -f nrf52 --program [name_of_file].hex --chiperase

Which I also use for the other dk and there no read protection is on.

It makes it even stranger if I program an example from Nordic, that the read protection is not on. Is there something in my code, which triggers a read protection on the new DK and not on the older DK because it has an older chip version or something? And what could cause the read protection in the software code

Parents Reply
  • Oh, I didn't know that has changed. I need to use --sectoranduicrerase because I only want to flash a certain area of the flash.

    However, after a reset it's still protected.

    I read that I need to disable it in the firmware, but when I type this NRF_UICR->APPROTECT=0x5A; it's still not disabled after reset.

    I also read "Firmware must write APPROTECT.DISABLE to SwDisable", but I can't find the APPPROTECT register. How can I write SwDisable to this register?

    I already spend a couple hours on this to fix it, I personally don't like this change that nordic made to enable rbp it by default. Would have been better to disable it and the with programming enable it, like I always do.

Children
Related