SDK 17.1.0
I developed a firmware that can be used in nrf52833-CJAA-R, but it can't be used in the nrf52833-CJAA-B.
According to the following link:
devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect
I added the following code to the top of main, but the FW still can't be used in the nrf52833-CJAA-B.
NRF_APPROTECT->DISABLE = APPROTECT_DISABLE_DISABLE_SwDisable;
if ((NRF_UICR->APPROTECT & UICR_APPROTECT_PALL_Msk) !=
(UICR_APPROTECT_PALL_HwDisabled << UICR_APPROTECT_PALL_Pos)) {
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Wen;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
NRF_UICR->APPROTECT = ((NRF_UICR->APPROTECT & ~((uint32_t)UICR_APPROTECT_PALL_Msk)) |
(UICR_APPROTECT_PALL_HwDisabled << UICR_APPROTECT_PALL_Pos));
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}
}
Could you please help to give me some suggestion to debug the issue? thanks