Hello,
I would like to use the UICR customer registers to store our devices serial numbers.
Can you please point me to some example code for nRF52833 SoC.
I am using nRF Connect SDK v1.7.0.
Thank you for your help.
Kind regards
Mohamed
Hello,
I would like to use the UICR customer registers to store our devices serial numbers.
Can you please point me to some example code for nRF52833 SoC.
I am using nRF Connect SDK v1.7.0.
Thank you for your help.
#include <zephyr.h> #include <nrfx_nvmc.h> void main(void) { nrfx_nvmc_word_write(&NRF_UICR->CUSTOMER[0], 0x00); return; }
Thank you Haakonsh.
I don't think you can access UICR through the file system.
Thank you Haakonsh.
I currently include the following header files
#include <zephyr.h>
#include <power/reboot.h>
#include <device.h>
#include <string.h>
#include <drivers/flash.h>
#include <storage/flash_map.h>
#include <fs/nvs.h>
Will the above suck in the files I need to write to and read from UICR?
Or do I need to add this #include <nrfx_nvmc.h> as well?
Kind regards
Mohamed
I believe you will need the nvmc headers as well.