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
Could you give me a usefull answer ? the code you gave is no usefull. how can i save some bytes to local flash ???
What is wrong with the code in the link? Please discribe your issue in more detail. Do you want to write to flash or UICR registers?