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

what information does the nrfjprog.exe write to UICR register??

what information does the nrfjprog.exe write to UICR(User Information Configuration Registers) register??

==========Tutorial of Flashing dfu bootloader to the nRF51 DK====== we need to make sure that nrfjprog.exe is configured as the tool for flash programming in project options. The default J-link target driver cannot correctly program the bootloader, this is because J-link can not write directly to the User Information Configuration Registers(UICR) from a hex file. The example project is preconfigured to use nrfjprog.exe, which is installed with the nRF51 MDK, and must be in the Windows system path.

  • Hawk, Softdevice hex does not include bootloader address. The hex values you are showing must be your dfu app from SDK? It cannot be the hex of the softdevice as far as i know.

    In S1107.0.0 removed putting value in UICR.CLENR0, so from this version softdevice does not put anything in UICR

    The size of the SoftDevice has been increased to 88 kB.
    The FWID is no longer stored in the UICR. Updated versions of the tools (nRFgo Studio, nrfjprog) compatible with this change
    are available as downloads from the Nordic Semiconductor web page.
    The SoftDevice hex file no longer contains the SoftDevice size in the UICR.CLENR0 register. This means that the SoftDevice is
    no longer protected by default. The updated versions of the tools (nRFgo Studio, nrfjprog) will write the SoftDevice size to the UI
    CR.CLENR0 register by default, thereby restoring default protection. Having protection enabled will not allow Device Firmware
    Update to a SoftDevice of larger size than the original, therefore the tools make it optional to not set the UICR.CLENR0 register.
    
  • thanks, the first,i make sure hex of softdevice does not include bootloader address.

Related