<?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>Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65712/update-nrf9160-modem-firmware-from-linux-command-line</link><description>I want to be able to update both application firmware and modem firmware via the terminal. I know the nrfjprog and have no problem downloading application firmware. 
 Is it true that Nordic have no simple cli tool to update the modem firmware? 
 I know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Sep 2020 07:04:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65712/update-nrf9160-modem-firmware-from-linux-command-line" /><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/269284?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 07:04:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9af791-a811-4ed4-a285-1d37eb59d2e2</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome, Carsten!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/269225?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 19:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc091a64-7e40-4234-bc7c-49f8cdc4daee</guid><dc:creator>cvt1982</dc:creator><description>&lt;p&gt;Thank you for the answers, this certainly clear out my questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/269088?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 07:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1acb274-1bfc-467d-9fe8-a45a59ecbc5b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Carsten!&lt;/p&gt;
[quote user="cvt1982"]You say that prnrfjprog is just a wrapper for nrfjprog. So can you show me how to program the modem firmware directly from nrfjprog?[/quote]
&lt;p&gt;Yes, the pynrfjprog is a wrapper for nrfjprog, but also introduces more features than nrfjprog. E.g. the ability to program modem fw, which nrfjprog alone does not have. And this is something that is missing from nrfjprog IMHO. This is also reported to our nrfjprog team.&lt;/p&gt;
[quote user="cvt1982"]I have followed your guide on&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/introduction.html"&gt;nRF Connect SDK&lt;/a&gt;&amp;nbsp;(more specifically the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;Installing the nRF Connect SDK manually&lt;/a&gt;&amp;nbsp;because I like to be in full control on my Linux setup) and I cannot find anything mentioned on the pynrfjprog. In the guide nrfjprog is highlighted as the tool to use (which &amp;quot;west&amp;quot; has to use during &amp;quot;west flash&amp;quot; commands).[/quote]
&lt;p&gt;&amp;nbsp;As you mention in your initial post, the pynrfjprog may introduce more programming for a simple project where you simply want to compile and test your code. In a production environment it will&amp;nbsp;allow the developer to program several devices with a production ready modem and application firmware.&lt;br /&gt;&lt;br /&gt;Both west and cmake/ninja uses nrfjprog to program the device, but only one device at the time. Once compiled the user can swap &amp;quot;&lt;em&gt;west flash&lt;/em&gt;&amp;quot; or &amp;quot;&lt;em&gt;ninja flash&lt;/em&gt;&amp;quot; with a python command that uses pynrfjprog to program both modem and application.&amp;nbsp;&lt;/p&gt;
[quote user="cvt1982"]&amp;nbsp;Maybe it is just me who are blind, but for some reason the pynrfjprog is a hidden project when looking at your default documentation (on nRF Connect SDK, user guides etc.). The first time I saw it was on a post here in the forums.[/quote]
&lt;p&gt;&amp;nbsp;Yeah, I agree that it&amp;#39;s not mentioned that much in use with nRF9160, but it is &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrftools/struct/nrftools.html"&gt;available under nRF Tools&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pynrfjprog"&gt;via github&lt;/a&gt;. There should be more mentioning of this tool especially with regards to information on usage in production for nRF9160.&lt;br /&gt;&lt;br /&gt;Let me know if anything is unclear, or you need any more information and I will dig up some more for you &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/269056?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 18:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5bf5779-79cf-4e5f-a5f7-bc450c910813</guid><dc:creator>cvt1982</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind&lt;/p&gt;
&lt;p&gt;Okay I admit that pynrfjprog seems to be able to do the trick.&lt;/p&gt;
&lt;p&gt;I have 2 questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You say that prnrfjprog is just a wrapper for nrfjprog. So can you show me how to program the modem firmware directly from nrfjprog?&lt;/li&gt;
&lt;li&gt;&amp;nbsp;I have followed your guide on&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/introduction.html"&gt;nRF Connect SDK&lt;/a&gt;&amp;nbsp;(more specifically the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_installing.html#installing-the-ncs-manually"&gt;Installing the nRF Connect SDK manually&lt;/a&gt;&amp;nbsp;because I like to be in full control on my Linux setup) and I cannot find anything mentioned on the pynrfjprog. In the guide nrfjprog is highlighted as the tool to use (which &amp;quot;west&amp;quot; has to use during &amp;quot;west flash&amp;quot; commands).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;Maybe it is just me who are blind, but for some reason the pynrfjprog is a hidden project when looking at your default documentation (on nRF Connect SDK, user guides etc.). The first time I saw it was on a post here in the forums.&lt;/p&gt;
&lt;p&gt;Maybe it should be included more actively (with reference to the examples on the github repo) to help users like me?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Carsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/268854?ContentTypeID=1</link><pubDate>Thu, 10 Sep 2020 07:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05666611-2829-4b11-859e-5c2fd99c284e</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I started to write this answer yesterday, but it was not sent.&amp;nbsp;&lt;/p&gt;
[quote user="cvt1982"]First of all I&amp;#39;m impressed with your response speed - thank you for that![/quote]
&lt;p&gt;&amp;nbsp;Well, quick answers are not always good as it looks like I might have not gotten or given all the details.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Reading over one more time, I have to correct myself. I do agree that we should have a better/easier solution in e.g. nRF Connect for Desktop, which allows for programming several nRF9160 with both modem and application.&lt;/p&gt;
&lt;p&gt;However, the &lt;a href="https://github.com/NordicSemiconductor/pynrfjprog"&gt;pynrfjprog&amp;nbsp;is a wrapper for&amp;nbsp;nrfjprog&lt;/a&gt;&amp;nbsp;and lets you program the amount of devices you want, and is perfect for production environment. There are examples of how it is done &lt;a href="https://github.com/NordicSemiconductor/pynrfjprog/tree/master/pynrfjprog/examples"&gt;in the github repo&lt;/a&gt;&amp;nbsp;(look at the .py files).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The script I provided is something that you can run one simple command and then program the modem to all connected nRF9160 devices. The old nrf9160_mdm_dfu is deprecated, but was a script similar to this python script to program one device.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/268745?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 12:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0fa7619-aa42-4b93-8e94-f9619afd170e</guid><dc:creator>cvt1982</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind&lt;/p&gt;
&lt;p&gt;First of all I&amp;#39;m impressed with your response speed - thank you for that!&lt;/p&gt;
&lt;p&gt;Second I&amp;#39;m glad I&amp;#39;m not the only one missing something here. In a production environment where I have to put production-ready software in my nrf devices it has to be efficient and streamlined... and I cannot do this with gui tools.&lt;/p&gt;
&lt;p&gt;Producing 50-100 pcs of equipment and the operator has to click nrf connect 50-100 times is just adding to the overall cost.&lt;/p&gt;
&lt;p&gt;Do you know what the schedule is of the next-gen tool?&lt;/p&gt;
&lt;p&gt;From previous incidents it looks like you have had standalone cli tools (&lt;a title="nrf9160_mdm_dfu" href="https://devzone.nordicsemi.com/f/nordic-q-a/49264/unable-to-update-firmware-on-nrf9160"&gt;nrf9160_mdm_dfu&lt;/a&gt;) to do firmware update of the modem software... but for some reason has canceled those. Do you know why?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Carsten&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update nrf9160 modem firmware from Linux command line</title><link>https://devzone.nordicsemi.com/thread/268657?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 07:57:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4cbab06-5394-4ff8-bed8-b1c5a291ee72</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Yes, I could not agree more with you. We are aware that this is a serious drawback, and we are working to fix this. At the moment the best solution is using pynrfjprog until we get this fixed.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="python"&gt;from pynrfjprog import HighLevel
api = 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_nrf9160_1.2.0.zip&amp;quot;)
    probe.verify(&amp;quot;mfw_nrf9160_1.2.0.zip&amp;quot;)
    probe.close()
    print(&amp;quot;Done&amp;quot;)
 
api.close()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I am sorry for the inconvenience this is causing.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>