I’m attempting to update the nrf9160 feather modem firware using the mfw_update example. After building and loading the example to the feather and installing pynrfjprog(10.15) I would get the error [ModemUARTDFUProbe] Failed to load dll at lib/python3.10/site-packages/pynrfjprog/lib_x64/libnrfdfu.so when running the python script. I noticed that libnrfdfu.so was missing in pynrfjprog version 10.15 but present in version 10.14, so I downgraded to that version. Version 10.14 solved that issue but now when I run the python script I get this error for every line of the digest file.

Probes./dev/ttyUSB0] [ModemUARTDFU-/dev/ttyUSB0] Could not parse segment line 18375 in digest file. Line will be ignored.
[Probes./dev/ttyUSB0] [ModemUARTDFU-/dev/ttyUSB0] Expected "Range: 0x%08X--0x%08X SHA256:            %64s"
[Probes./dev/ttyUSB0] [ModemUARTDFU-/dev/ttyUSB0] Got      "

I’ve tried this with both firmware 1.2.7 & 1.3.1 downloaded directly from the nordic site.

I got this to work by reinstalling pynrfjprog 10.15.4 then downloading the nrf-comandline-tools tarball and manually moving the file ~/Downloads/nrf-command-line-tools/lib/libnrfdfu.so to ~/.local/lib/python3.10/site-packages/pynrfjprog/lib_x64/libnrfdfu.so. I’m not sure why that lib was missing but this works.

    Terms and Conditions | Privacy Policy