<?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>nRF9160 modem firmware upgrade (programmatic)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103579/nrf9160-modem-firmware-upgrade-programmatic</link><description>I&amp;#39;m attempting to send OTA modem upgrades to the nRF9160, from v1.3.3 to 1.3.4 and then 1.3.5. Our application code is built on nRF Connect SDK version 2.4.2. 
 So far I&amp;#39;m able to send the firmware image (1.3.3 to 1.3.4), and eventually restart the 9160</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Sep 2023 17:19:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103579/nrf9160-modem-firmware-upgrade-programmatic" /><item><title>RE: nRF9160 modem firmware upgrade (programmatic)</title><link>https://devzone.nordicsemi.com/thread/445918?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2023 17:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac93fc4-417f-4951-8d53-dd52c87f11b6</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;What library do you use for the upgrades?&lt;/p&gt;
&lt;p&gt;Regardless, when the update is scheduled (which library you use will dictate how you get to this point), you can call nrf_modem_lib_shutdown() and nrf_modem_lib_init() to reboot the modem (this would be your first reboot in your current implementation).&lt;/p&gt;
&lt;p&gt;If nrf_modem_lib_init() returns NRF_MODEM_DFU_RESULT_OK, you can call nrf_modem_lib_shutdown and nrf_modem_lib_init() again, to re-start the modem in &amp;quot;normal mode&amp;quot; (as opposed to bootloader mode). This would replace the second reboot.&lt;/p&gt;
&lt;p&gt;So two &amp;quot;reboots&amp;quot; are still necessary, but you only need to reboot the modem, and not the whole chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem firmware upgrade (programmatic)</title><link>https://devzone.nordicsemi.com/thread/445271?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2023 02:52:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66a58a63-5e48-400d-b193-cde5fd79f464</guid><dc:creator>Frog</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for your quick response.&amp;nbsp; However I&amp;#39;m not accessing nrfxlib directly but using the nRF Connect SDK.&amp;nbsp; Now that I have a better idea what to look for I found this&lt;br /&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/dfu/dfu_target.html"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/dfu/dfu_target.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/dfu/dfu_target.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;which says that the modem attempts to apply the patch on the next reboot.&lt;/p&gt;
&lt;p&gt;This may be a clue to what&amp;#39;s going wrong - I wonder if the modem is still updating as my application code starts up.&amp;nbsp; It appears that doing another processor reset and initialising the modem a second time is successful.&amp;nbsp; That seems to work consistently.&amp;nbsp; Is that the optimal solution, or is there a way to determine that the modem is still updating and make the application code wait until it&amp;#39;s ready?&amp;nbsp; Or am I doing something completely wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem firmware upgrade (programmatic)</title><link>https://devzone.nordicsemi.com/thread/445192?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2023 15:52:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b6ac1e-48df-418b-b211-2ff741a71adc</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find the documentation for modem upgrades here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/delta_dfu.html#performing-delta-updates"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/delta_dfu.html#performing-delta-updates&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see, you don&amp;#39;t have to reset the whole SiP, you just have to shutdown and re-initialize the modem library first to DFU mode, and then to normal mode.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>