nrfutil: not possible to standalone validate nRF91 modem firmware

Under the old `nrfjprog`, it was possible to check whether the modem firmware matched a particular release by running `nrfjprog --verify mfw.zip` (see  Identifying modem version with J-Link (and pynrfjprog) )

This is no longer possible with `nrfutil`, the `--firmware` argument is required, and providing `--firmware` always results in the firmware being re-flashed.

nrfutil 91 modem-firmware-upgrade --verify ~/mfw_nrf91x1_2.0.3.zip
error: unexpected argument '/home/jordan/mfw_nrf91x1_2.0.3.zip' found

Usage: nrfutil-91 modem-firmware-upgrade [OPTIONS] --firmware <PATH>

For more information, try '--help'

Having the option to check whether the modem firmware is already correct is quite useful, since the flashing process is not a quick operation (over 30 seconds in my testing).

  • Hi,

    Is the command shown below suitable?

    nrfutil 91 modem-firmware-upgrade --firmware mfw_nrf91x1_2.0.3.zip --verify --serial-number <your_board_serial_number>


    Best regards,
    Dejan

  • Hi Dejan,

    No it is not suitable.

    > `nrfutil`, the `--firmware` argument is required, and providing `--firmware` always results in the firmware being re-flashed.

    I already mentioned that command in the original question stating that it doesn't work.

    It is also trivial to check on your side that it doesn't work. Run the command twice, and see that the second run still sits there for 30 seconds programming the modem core a second time...

    (.zephyr_venv) jordan:~/code/workspace$ nrfutil 91 modem-firmware-upgrade --firmware ~/mfw_nrf91x1_2.0.3.zip --verify --serial-number 820101337
    [00:00:30] ###### 100% [000820101337] Upgraded modem firmware on 000820101337
    (.zephyr_venv) jordan:~/code/workspace$ nrfutil 91 modem-firmware-upgrade --firmware ~/mfw_nrf91x1_2.0.3.zip --verify --serial-number 820101337
    [00:00:30] ###### 100% [000820101337] Upgraded modem firmware on 000820101337

  • Hi,

    Can you try using 'nrfutil device fw-verify'?

    Best regards,
    Dejan

Related