Hi,
related issue: ERASEUICR not erasing UICR
But I thought I rather raise a separate issue, since the issue is a different one:
We're using NRF52840, NRF_FICR->INFO.VARIANT
is 0x41414430 / AAD0.
After flashing the firmware in our production, an nrfjprog --rbp ALL
is done. Then, in the further production process, some data is written in the UICR->CUSTOMER registers. (Via the actual firmware, controlled by commands sent via BLE).
It seems at this point we have no possibility of erasing the CUSTOMER registers of the UICR anymore, to possibly change the values in the register again (without access to the debug port to do a --recover) with nrfx_nvmc_uicr_erase()? Neither
NRF_APPROTECT->DISABLE = APPROTECT_DISABLE_DISABLE_SwDisable;
NRF_UICR->APPROTECT = UICR_APPROTECT_PALL_HwDisabled;
Will work. The datasheet says that ERASEUICR is not possible when APPROTECT is enabled, but I can't disable APPROTECT without doing a full erase?
Is this correct?
With best regards,
Andreas