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

Creating a zip file for DFU master. Is nrf.exe replaced by nrfutil.exe?

I can't find nrf.exe in C:\Program Files (x86)\Nordic Semiconductor\Master Control Panel\3.10.0.14\nrf

I only find nrfutil.exe in that folder.

Shall I use nrfutil.exe?

  • Hi,

    Yes, you use nrfutil.exe. See Creating an image file on infocenter for details.

    Regards, Terje

  • Thank you.

    More questions:

    I read in Creating a zip with image and init packet that I must supply the following:

    --dev-revision version: the revision of the device that should accept the image, for example, 1

    Ok, so if I set this to 1 what is this checked against? Where too must I enter 1, in my application or DFU bootloader?

    Same with:

    --dev-type type: the type of the device that should accept the image, for example, 1

    And:

    --sd-req sd_list: a comma-separated list of FWID values of SoftDevices that are valid to be used with the new image, for example, 0x4f,0x5a

    Where do I find these magic numbers (0x4f and 0x5a)? I use S130 SoftDevice.

  • Hi,

    --dev-revision and --dev-type are checked with the UICR registers, which both are set to 0xFFFF by default. By changing these registers you can mark different revisions of your device with different numbers, and make separate firmware updates for each device revision. This is unlike --application-version which is not checked by the DFU firmware.

    We do not have a list of --sd-req magic numbers. To find the value for a given SoftDevice version you can program that version to a board and find the code using nRFgo studio. It will appear under "Region 1 (SoftDevice)", under "Firmware:", in my case (a particular version of s132) it is "(Id: 0x006d)". Another approach is to look up SD_FWID_OFFSET in the nrf_sdm.h SoftDevice header file. It is the memory address offset where you will find the ID in the softdevice hex itself.

    Regards, Terje

  • I also found this answer containing a table with a lot of SoftDevice versions and FWIDs to use with --sd-req.

Related