<?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>Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89795/manually-flash-the-nrf9160-dk</link><description>Dear Nordic Support Team, 
 we are planning to use the nRF9160 DK outside of our development department. E. g. we would like to provide the board, along with a certain user application (now called nrf-application), to employees of our service department</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Jul 2022 07:30:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89795/manually-flash-the-nrf9160-dk" /><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/377086?ContentTypeID=1</link><pubDate>Fri, 15 Jul 2022 07:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b7a7512-0aef-491a-a647-c52bb3b737ba</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="Sebastian Stein"]In any case, thank you allot for your help, Markus![/quote]
&lt;p&gt;&lt;span&gt;My pleasure, Sebastian! And again, thanks a lot for your input :-)&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376919?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2022 09:42:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b85ba81-bef8-4b41-ab0a-993ee9652709</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;thank you for your hint. Again, it looks promising.&lt;/p&gt;
&lt;p&gt;I stumbled across the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/dfu/dfu_target.html#lib-dfu-target"&gt;DFU target&lt;/a&gt; library in the in nRF Connect SDK and it looks like exactly what I was looking for. Unfortunately there is no sample which shows the library in action. However, I had a look into the source code of the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/networking/fota_download.html#lib-fota-download"&gt;FOTA download&lt;/a&gt; library which uses the DFU target library to perform modem and application firmware updates.&lt;/p&gt;
&lt;p&gt;Long story short: I think I will try to stream a firmware image over the UART connected to the USB interface of the nRF9160 DK and use the DFU target library to perform the update.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Sebastian&lt;/p&gt;
&lt;p&gt;------------------- EDIT -------------------&lt;/p&gt;
&lt;p&gt;As it turns out, the approach with DFU target library has certain flash limitations and cannot be used for a new nRF9160 DK without an appropriate user application which includes the MCBoot boot loader and the DFU target library. I think I will have to facilitate both approaches (nrfjprog and DFU target) for different scenarios.&lt;/p&gt;
&lt;p&gt;In any case, thank you allot for your help, Markus!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376543?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2022 07:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68c3075d-267b-469f-9749-20f27fd50bd3</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Sebastian,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Sebastian Stein"]This boils down to the following question: How do I enable a desktop app, written by me, to flash a user application or modem firmware to the nRF9160 SiP via the USB interface of the nRF9160 DK board?[/quote]
&lt;p&gt;&lt;span&gt;Ok, now I understand! Thanks for elaborating :-)&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have not been into this particular matter myself, but what you probably should do to achieve this is making usage of&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe.html"&gt;nrfjprog&lt;/a&gt; executable.&lt;/span&gt;&lt;span&gt; It has a &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogdll.html"&gt;DLL&lt;/a&gt; which provides an API that you should be able to use for your GUI.&lt;/span&gt;&lt;span&gt; You could have a look at &lt;a href="https://infocenter.nordicsemi.com/topic/ug_pynrfjprog/UG/pynrfjprog/pynrfjprog_lpage.html"&gt;nRF pynrfjprog&lt;/a&gt;, which provides a simple Python interface for the nrfjprog DLL.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope this will help you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376385?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 10:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4940c77-7af3-47fe-ae0d-2c4080b46bd5</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi Markus,&lt;/p&gt;
&lt;p&gt;thank you again for your reply.&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/89795/manually-flash-the-nrf9160-dk/376370"]I’m honestly not a 100% sure what you are asking for here[/quote]
&lt;p&gt;Sorry for not being clear. I understand that the documentation (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fnan_041%2FAPP%2Fnan_production_programming%2Fintro.html"&gt;Production Programming&lt;/a&gt;) you pointed me at discusses how to directly flash a standalone nRF9160 SiP. In my case, I don&amp;#39;t have a standalone nRF9160 SiP. The nRF9160 SiP I want to flash is embedded in a nRF9160 DK board. Thus, I am looking for a method to manually flash&amp;nbsp;(without SES, Nordic Programmer App, etc.) a user application or modem firmware to the nRF9160 SiP via the USB interface of the nRF9160 DK board.&lt;/p&gt;
&lt;p&gt;This boils down to the following question: How do I enable a desktop app, written by me, to flash a user application or modem firmware to the nRF9160 SiP via the USB interface of the nRF9160 DK board?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376370?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 09:13:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57c98199-2f8f-45ac-91ee-9e22f6176b1d</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Sebastian,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Sebastian Stein"]Can you please comment on the implications of that special case?[/quote]
&lt;p&gt;&lt;span&gt;I’m honestly not a 100% sure what you are asking for here, but the USB communication on the nRF9160 DK is done via a &lt;a href="https://www.segger.com/products/debug-probes/j-link/models/j-link-ob/"&gt;SEGGER J-Link OB Debugger&lt;/a&gt;.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you would like to know how it is designed on the development kit, I recommend you having a look at the &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Dev-Kits/nRF9160-DK/Hardware-files/nRF9160-DK---Hardware-files-1_1_0.zip"&gt;schematic layout&lt;/a&gt;. It shows both the USB connector itself and how it is connected to the Interface MCU &lt;span style="font-size:11pt;line-height:19.425px;" lang="EN-GB"&gt;&lt;span&gt;&amp;amp; UART control.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8105.pastedimage1657530347134v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6052.pastedimage1657530487392v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0284.pastedimage1657530775428v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376334?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2022 07:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c4a264-0520-411c-b5d1-d09d56f99ade</guid><dc:creator>Sebastian Stein</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;I had a look at the documentation you mentioned and it looks very promising in terms of manuality. However, while browsing the documentation, I was not able find anything related to the special case of flashing the nRF9160 via the nRF9160 DK&amp;#39;s USB interface.&lt;/p&gt;
&lt;p&gt;Can you please comment on the implications of that special case?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Manually flash the nRF9160 DK</title><link>https://devzone.nordicsemi.com/thread/376238?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 13:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e8e3865-acb8-4e8e-9700-b3c943b85c68</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello Sebastian,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]Can you please tell me (or point at the documentation) how to enable a custom software to flash an user application and/or modem firmware to the nRF9160 DK via its USB interface?[/quote]
&lt;p&gt;&lt;span&gt;Referring to the &lt;a href="https://infocenter.nordicsemi.com/topic/nan_041/APP/nan_production_programming/intro.html"&gt;Production Programming&lt;/a&gt; chapter of the nRF9160.&lt;/span&gt;&lt;span&gt; This is the “as manually as possible” documentation that we can provide :-)&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Markus&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>