nRF51822 how to save user data to UICR FLASH? I have some user data bytes wan to save to UICR ,I see the CUSTOMER[0]~[31] is can be used. how to save it ? think.
like UICR CUSTOMER[0]~CUSTONER[31]
nRF51822 how to save user data to UICR FLASH? I have some user data bytes wan to save to UICR ,I see the CUSTOMER[0]~[31] is can be used. how to save it ? think.
like UICR CUSTOMER[0]~CUSTONER[31]
witch answer is ok ?
NRF_NVMC->CONFIG=1;//FOR write --------------------------it would be due here for(int tmpi=0;tmpi<32;tmpi++) { NRF_UICR->CUSTOMER[tmpi]=dataflash[tmpi]; } NRF_NVMC->ERASEUICR=0; NRF_NVMC->CONFIG=0;//FOR READ
witch answer is ok ?
NRF_NVMC->CONFIG=1;//FOR write --------------------------it would be due here for(int tmpi=0;tmpi<32;tmpi++) { NRF_UICR->CUSTOMER[tmpi]=dataflash[tmpi]; } NRF_NVMC->ERASEUICR=0; NRF_NVMC->CONFIG=0;//FOR READ