<?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 firmware update</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96056/nrf9160-firmware-update</link><description>Hello DevZone, I am currently working with a nRF9160DK, and more precisely looking at bootloader/firmware update. &amp;gt; developer.nordicsemi.com/.../ug_bootloader.html 
 I have a few general questions. For my project, my needs are pretty basic: I want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2023 10:59:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96056/nrf9160-firmware-update" /><item><title>RE: nRF9160 firmware update</title><link>https://devzone.nordicsemi.com/thread/406824?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2023 10:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72646744-e0fd-4a12-9030-752cc78dab6d</guid><dc:creator>Vincent44</dc:creator><description>&lt;p&gt;Thanks for detailed response.&lt;/p&gt;
&lt;p&gt;I have the info I need for now ... I&amp;#39;ll probably be back when implementing. &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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 firmware update</title><link>https://devzone.nordicsemi.com/thread/406695?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2023 14:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb1dee7-c2ac-4fb5-8e3c-dc8f44dac2e0</guid><dc:creator>brandon_ask_questions</dc:creator><description>[quote userid="122344" url="~/f/nordic-q-a/96056/nrf9160-firmware-update"]For my project, my needs are pretty basic: I want to be able to to update the application firmware over NB-IoT/LTE-M.&lt;br /&gt;For a basic usage, the nRF Secure Immutable Bootloader (NSIB) as a single stage bootloader seems to be the best/simplest option. [/quote]
&lt;p&gt;If you are going to use a single stage you should consider using MCUboot instead&amp;nbsp;NSIB as it is better supported within NCS (IMO).&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="122344" url="~/f/nordic-q-a/96056/nrf9160-firmware-update"]Can the nRF9160 be programmed with NSIB first, then adding the app ? Do I need to prepare a combined file with both NSIB and app ?&lt;br /&gt;Is there any documentation on that topic, so I get some info on the process (how to generate the files, which hardware/software tools to use, etc) ?[/quote]
&lt;p&gt;You should not need to prepare anything, the build system outputs various binaries with everything combined and the OTA binary. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_build_system.html#output-build-files"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_build_system.html#output-build-files&lt;/a&gt;&amp;nbsp;. Ive only flashed nRF devices with a segger, I am sure there is other tools you could use.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="122344" url="~/f/nordic-q-a/96056/nrf9160-firmware-update"]Since the NSIB does not support downloading the firmware from cellular, this needs to be implemented in the app.&lt;br /&gt;Is there any example on how this is done. I was able to find code snippet here and there, but no detailed example.&lt;br /&gt;Also, from what I understood, the entire process is quite high level, is this correct ? By this, I mean that I don&amp;#39;t need to worry about the memory address used and so on, this is already handled by the library ?[/quote]
&lt;p&gt;The fota_download library has good examples and is easy to use. It has a concept of DFU targets and uses the signed header to figure out where it belongs in flash. If you use the FOTA library, you do not need to worry about the memory address as it will handle it. See examples here:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/http_update"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/http_update&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
[quote userid="122344" url="~/f/nordic-q-a/96056/nrf9160-firmware-update"]Lastly, I just wanted to confirm that the app firmware and modem firmware are 2 separate thing : updating the nRF9160 app does not affect the modem firmware ?[/quote]
&lt;p&gt;Yup! They are seperate&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>