This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Mesh DFU example - How to write information to NRF_UICR->CUSTOMER

I would like to store unit configuration information into the UICR "customer" area. This is done only once, on first startup, saving configuration received from the host.

Tried using NRF_NVMC, but looks like app or soft device is somehow crashing.

Using nrf5_SDK_for_Mesh_v4.1.0_src\examples\dfu\dfu_nrf52832_xxAA_s132_7_0_1.emProject

Thanks, Piotr

Parents Reply
  • OK, with sd_softdevice_disable function nrf_flash_write worked. I can reset and restart the device at this point, but possibly the sd could be enabled again, but I am not sure about the function parameters. We do have 32kHz xtal for the low frequency clock, as in the reference design.

    SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));

    Thanks, Piotr

Children
Related