<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52941/modem-dfu-fails-on-nrf9160-using-nrf-connect</link><description>Hi, 
 I&amp;#39;m trying to update the modem firmware on my nRF9160. I believe the current firmware is mfw-m1_nrf9160_0.6.8-30.alpha. I followed Martin&amp;#39;s suggestions here , but nRF Connect fails with a DLL error. Below if the output: 
 
 This is my environment</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Oct 2019 13:17:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52941/modem-dfu-fails-on-nrf9160-using-nrf-connect" /><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/215945?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 13:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087623a7-9b09-4668-82e8-a8745fc0a187</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;There seems to be some compatibility issues with modem DFU and Ubuntu 16, it does however work with Ubuntu 18. We are looking into the issue, and I will post an update here when a fix is ready.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/215767?ContentTypeID=1</link><pubDate>Sat, 19 Oct 2019 02:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4bb09a1-a43f-4ff1-980d-463e8fa1e09e</guid><dc:creator>troylanes</dc:creator><description>&lt;p&gt;Good news.&amp;nbsp; I got it to work, finally.&amp;nbsp; Using pynrfjprog 10.2.1, JLink version 6.46c and nrfjprog v 9.8.1&lt;/p&gt;
&lt;p&gt;no more wonky JLINK_DLL errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/215248?ContentTypeID=1</link><pubDate>Wed, 16 Oct 2019 10:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98166348-5e6e-4f54-a510-e339a0193abc</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I only have one version of nrfjprog installed, located in /usr/bin after installing though the .deb package.&lt;/p&gt;
&lt;p&gt;I ran Windows 10 in Virtualbox on the same machine and passed the USB device through, and I was able to update the modem firmware with no issues from Windows 10.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214920?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 17:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fb1c649-7c35-4ad9-9baa-4d69e81ba1a2</guid><dc:creator>troylanes</dc:creator><description>&lt;p&gt;FWIW, I have this issue, too.&amp;nbsp; Using Python 3.6 on Ubuntu 18.04 -- managed to get it to work in a VM -- and AFAIK all installed versions are correct.&amp;nbsp; Cannot get it to work, again, on any different machines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214892?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 14:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b63584c3-3e5f-40f0-b8aa-38d9739933d8</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Do you have multiple versions of nrfjprog installed? Could you check that&amp;nbsp;$PATH only points to one installation?&lt;/p&gt;
&lt;p&gt;Just to be 100% sure that this is a ubuntu environment issue, and not an issue with the board itself, could you try to use e.g a windows computer and try to use that to update the modem fw on the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214545?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 09:43:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a7adee-c764-4973-8b4e-e081ca74b0ff</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;I am unable to run the latest nRF Connect AppImage as root. It returns immediately with exit code 0 without launching anything. I can run version &amp;lt;= 3.0.0&amp;nbsp;as root, but the Programmer application does not launch from&amp;nbsp;these versions of nRF Connect.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your python script fails with the same error (even when running it as sudo):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
  File &amp;quot;dfu.py&amp;quot;, line 6, in &amp;lt;module&amp;gt;
    probe = HighLevel.IPCDFUProbe(api, s, HighLevel.CoProcessor.CP_MODEM)
  File &amp;quot;/home/fredrik/.local/lib/python3.7/site-packages/pynrfjprog/HighLevel.py&amp;quot;, line 558, in __init__
    raise APIError(result, log=self._logger.error)
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -151 NRFJPROG_SUB_DLL_COULD_NOT_BE_OPENED.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried downgrading pynrfjprog to version 10.3.0 (the same as my current nrfjprog installation) and running the script again. This time it fails here:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Traceback (most recent call last):
  File &amp;quot;dfu.py&amp;quot;, line 13, in &amp;lt;module&amp;gt;
    probe.program(&amp;quot;mfw-nrf_9160-1.0.1.zip&amp;quot;)
  File &amp;quot;/home/fredrik/miniconda3/lib/python3.7/site-packages/pynrfjprog/HighLevel.py&amp;quot;, line 307, in program
    raise APIError(result, log=self._logger.error)
pynrfjprog.APIError.APIError: An error was reported by NRFJPROG DLL: -3 INVALID_PARAMETER.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can see the LED blinking on the nRF91 DK just before it crashes though, so there is at least some communication.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the record, I am using&amp;nbsp;Python 3.7.3.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214453?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 16:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eace7b4c-8c18-47f0-ba50-dc55a3aa8dbe</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does it work if you run nRF-Connect for Desktop as sudo ?&lt;/p&gt;
[quote user="fellerts"]Are there any CLI tools I can use instead? [/quote]
&lt;p&gt;You could try to do the modem DFU using this python script&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;from pynrfjprog import HighLevelapi = HighLevel.API()
api.open()
snr = api.get_connected_probes()
for s in snr:
    probe = HighLevel.IPCDFUProbe(api, s, HighLevel.CoProcessor.CP_MODEM)
    probe.program(&amp;quot;mfw-nrf_9160-1.0.0.zip&amp;quot;)
    probe.verify(&amp;quot;mfw-nrf_9160-1.0.0.zip&amp;quot;)
 
api.close()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214345?ContentTypeID=1</link><pubDate>Thu, 10 Oct 2019 11:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0820ac97-f7cd-429a-affc-a2a76dbf997a</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;There seems to be an issue with nrfjprog v10.4.0 on Linux64. After unpacking the tar archive, I run&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ sudo dpkg -i nRF-Command-Line-Tools_10_4_0_Linux-amd64.deb&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then to check that the installation worked, I run&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ cd ~
$ nrfjprog --version
ERROR: nrfjprog.ini not found. Please reinstall nrfjprog.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure what&amp;#39;s wrong here, as nrfjprog.ini is present in /opt/nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ ls /opt/nrfjprog/
DllCommonDefinitions.h          libhighlevelnrfjprog.so             libnrfjprogdll.so  nrfjprog.ini
highlevelnrfjprogdll.h          libjlinkarm_nrf51_nrfjprogdll.so    LICENSE.txt        nrfjprog_release_notes.txt
jlinkarm_nrf51_nrfjprogdll.h    libjlinkarm_nrf52_nrfjprogdll.so    nrfdfu.h           QspiDefault.ini
jlinkarm_nrf52_nrfjprogdll.h    libjlinkarm_nrf91_nrfjprogdll.so    nrfjprog
jlinkarm_nrf91_nrfjprogdll.h    libjlinkarm_unknown_nrfjprogdll.so  nrfjprogdll.h
jlinkarm_unknown_nrfjprogdll.h  libnrfdfudll.so                     nrfjprog.h
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And running nrfjprog from inside /opt/nrfjprog works fine. Can you confirm that installing v10.4.0 works on Ubuntu?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, I reverted to nrfjprog v10.3.0 (which installs without issues using dpkg as decsribed above) and&amp;nbsp;updated successfully&amp;nbsp;to&amp;nbsp;&lt;span&gt;0.7.0-29.alpha&lt;/span&gt;&lt;span&gt;&amp;nbsp;using the included mdm_dfu tool. However, I am still unable to update to either v1.0.0 or v1.0.1 using the Programmer application.&lt;pre class="ui-code" data-mode="text"&gt;2019-10-10T11:30:01.121Z ERROR Modem DFU failed with error: Error: Error occured when program. Errorcode: CouldNotOpenDevice (0x4)
Lowlevel error: NRFJPROG_SUB_DLL_COULD_NOT_BE_OPENED (ffffff69)&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are there any CLI tools I can use instead? Anything I can do to understand what the Programmer application is having trouble with?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214169?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 12:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63241cc-2594-400a-a995-24aa72d0aa4d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Try installing nrfjprog v10.4.0, see &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;this link&lt;/a&gt;, and see if that helps.&lt;/p&gt;
&lt;p&gt;If that does not work either, you might need to update to another version first, before then updating to v1.0.0 / v1.0.1&lt;/p&gt;
&lt;p&gt;E.g. try to update to&amp;nbsp;0.6.8-131.alpha , or&amp;nbsp;0.7.0-29.alpha first, and then&amp;nbsp;&lt;span&gt;v1.0.0 / v1.0.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Older versions can also be found here:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs&lt;/a&gt;. Note that the pre-v1.0.0 versions need to use the mdm_dfu tool (included in the zip) for the update.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214156?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 12:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26190440-6883-4eec-83f0-8de77ebbc6a4</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;No other apps are running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/214147?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 11:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:821c41a8-51bb-4329-aeda-8fb45af36918</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;div&gt;You can get this error if you have the device connected to another nRF Connect App (like the LTE Link Monitor) as well as the Programmer app. Please&amp;nbsp;close all other &lt;span&gt;nRF Connect&amp;nbsp;&lt;/span&gt;apps before updating the modem.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/213817?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 08:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3a01b50-609a-49fe-964a-52cad9754747</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a DK. This is the information from the back of the DK:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;PCA10090
0.8.2
2018.49
960010299&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried erasing the chip, but the problem persists.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/213811?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 08:13:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a6fd46-7328-4c93-98cf-b3931a815e08</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Fredrik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it a custom board or a DK?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s a DK, what version of the DK are you using?&lt;/p&gt;
&lt;p&gt;You could try to erase the chip (nrfjprog -e) before programming&amp;nbsp;modem fw 1.0.1.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/213625?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90ba889b-7b26-480e-8ac4-14d30d8d892c</guid><dc:creator>Fredrik</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Yes, my nRF Command Line Tools are up to date. Just to make sure, I downloaded and installed them again, but I am still unable to update the modem firmware.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ nrfjprog --version
nrfjprog version: 10.3.0
JLinkARM.dll version: 6.44e&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am able to successfully flash applications to the nRF9160 using the nRF Connect programmer. The&amp;nbsp;&lt;strong&gt;at_client&amp;nbsp;&lt;/strong&gt;sample application works fine with the modem firmware currently on the board. It&amp;#39;s just the modem update process that&amp;#39;s not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Modem DFU fails on nRF9160 using nRF Connect</title><link>https://devzone.nordicsemi.com/thread/213614?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:09:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4debe8f-54e3-49e7-9d84-3fca79791f47</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Fredrik,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you update to the latest&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/?sc_itemid=%7B56868165-9553-444D-AA57-15BDE1BF6B49%7D" rel="noopener noreferrer" target="_blank"&gt;&amp;#39;nRF Command Line Tools&amp;#39;&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Please refer to this &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-get-production-version-v1-0-0-to-nrf9160"&gt;tutorial&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>