Hi, I am trying to modify UICR PSELRESET but its not changing. Any help?
NRF_UICR->PSELRESET[0] = 0xFFFFFFFF ;
NRF_UICR->PSELRESET[1] = 0xFFFFFFFF ;
Thanks
Hi, I am trying to modify UICR PSELRESET but its not changing. Any help?
NRF_UICR->PSELRESET[0] = 0xFFFFFFFF ;
NRF_UICR->PSELRESET[1] = 0xFFFFFFFF ;
Thanks
Read this:
You need to erase the UICR region in order to write bits from 0 to 1, 1 to 0 does not require an erase operation. Also:
"After UICR has been written, the new UICR configuration will only take effect after a reset."
Read this:
You need to erase the UICR region in order to write bits from 0 to 1, 1 to 0 does not require an erase operation. Also:
"After UICR has been written, the new UICR configuration will only take effect after a reset."
Currently in NRF_UICR->PSELRESET value is 21 which means pin 21 is reset so I want to remove this pin from reset, That's y i m updating value to 0xFFFFFFFF. Can you suggest?
Updated my code as below, working fine.
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Een << NVMC_CONFIG_WEN_Pos;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){};
NRF_NVMC->ERASEUICR = NVMC_ERASEUICR_ERASEUICR_Erase;
NRF_UICR->PSELRESET[0] = 0xFFFFFFFF ;
NRF_UICR->PSELRESET[1] = 0xFFFFFFFF ;
NRF_NVMC->CONFIG = NVMC_CONFIG_WEN_Ren << NVMC_CONFIG_WEN_Pos;
while (NRF_NVMC->READY == NVMC_READY_READY_Busy){}