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

Updating nrf9160 modem firmware through the command line

We are producing a batch of nrf9160 based devices and will need to upgrade the modem firmware, this will be much easier if we could do this through the command but I saw on modem firmware version 1.0.0  and after, you no longer provide a flashing tool and recommend nRF Programmer.

Can the old nrf9160_mdm_dfu be used with the newer modem firmware or how would you recommend upgrading modems through the command line?

  • Hi,

    It's possible to use a python script with pynrfjprog to flash the modem. 

    Simple example:

    With threading[experimental]


  • I'm having issues with the DLL file on "HighLevel.IPCDFUProbe(...)", I'm on Linux so guessing it means the .so file

    I get -100 JLINKARM_DLL_NOT_FOUND when I point to a folder containing some .so files. I also tried pointing to /opt/SEGGER/Jlink

    I get -151 NRFJPROG_SUB_DLL_COULD_NOT_BE_OPENED if don't specify the path

  • What version of nrfjprog and pynrfjprog are you using ?

    There are some reported issues with nrfjrpog 10.4.0 on Linux, so at the moment you should try to use 10.3.0 on linux for nrfjprog and pynrfjprog.

    It could be that you have an older pynrfjprog installed. Try to run this:

    pip3 install pynrfjprog==10.3.0 -U

  • Ok that seemed to work, is there a way to add some debug information during the flashing and verifying?

    I see within IPCDFUProbe, logging is enabled by default but I don't see any logging

  • Hi,

    is there a way to add some debug information during the flashing and verifying?

    Yes.

    Take look at this file. Logging level is set to INFO here.

    (Using f-Strings(introduced in python 3.6))

1 2