<?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>Thread DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66251/thread-dfu</link><description>I want to program the firmware into a nrf52840 on our custom board to be the NCP and do the DFU over thread. I can not use the DK board and have the nrfutil load the firmware. 
 I also need to be able to change the thread masterkey. Is the source code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Sep 2020 16:50:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66251/thread-dfu" /><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/272132?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 16:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d88bd80-7270-4afa-8f22-4b07ab489f33</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Thanks I did not realize the coap was done with spinel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/272114?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 15:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1a9d729-cf1c-4e74-bc48-dae12fb439fd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That is true. nrfutil will probably by default use the serial (UART) interface between the programmer chip and the nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It looks like the hex file that is programmed to the nRF52840 by nrfutil is just a default NCP example from the nRF5 SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I have some good and some bad news. I set up a Thread DFU test, using 2x nRF52840 DKs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Normal DFU using nrfutil and &amp;quot;nrfutil dfu thread -f ...&amp;quot; works just fine.&lt;/p&gt;
&lt;p&gt;Then I tried to flash the thread\ncp\ftd\uart example, and then the &amp;quot;nrfutil dfu thread ...&amp;quot; without the -f flag works as well.&lt;/p&gt;
&lt;p&gt;However, when I tried the ncp\ftd\usb example, it doesn&amp;#39;t work out of the box using nrfutil. It throws an error saying it can&amp;#39;t reset the device, so it looks like you need to do some changes to nrfutil.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So the bad news are that you need to do some modifications and rebuild nrfutil. The good news is that you can use the default NCP example from the SDK.&lt;/p&gt;
&lt;p&gt;If you can use this example for everything you need to do with the connected USB device, then you are almost there already. If you need to use another project, you need to add a USB bootloader that you can use to change between the NCP example and your custom project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;nrfutil&amp;#39;s source code is available here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;https://github.com/NordicSemiconductor/pc-nrfutil&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/271854?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 15:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b4d1ee1-ff30-4b85-a81a-ca6c4ce0ee3c</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Adding a bootloader to the NCP would be the option for us. Also as I understand it now the NCP is using the the serial port to communicate with the Segger chip on the DK board. Then the segger chip does the USB to serial translation.&amp;nbsp; We would need to add the USB serial functionality to the NCP.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/271845?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 14:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21907804-57e5-4c26-8f21-2fbab71103a4</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jnorrish"]But the ncp hex file in thegithub nrfutil&amp;nbsp; project is not a DFU able project is it?[/quote]
&lt;p&gt;&amp;nbsp;It doesn&amp;#39;t contain self-updates, no. But it is possible to update to and from this FW using a USB serial bootloader.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jnorrish"]The NCP in the nrfutil also has the nordic IOT included to do the DFU correct?[/quote]
&lt;p&gt;&amp;nbsp;What do you mean by &amp;quot;the nordic IOT included&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As I see it, it sounds like you have a couple of options.&lt;/p&gt;
&lt;p&gt;1: If the Linux computer is a fairly strong computer, you could run nrfjprog from it, and program the nRF the &amp;quot;normal&amp;quot; way directly via the SWD pins. That would require something more than just the USB connected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2: If only the USB being connected is a demand from your side, then you could program a USB bootloader to the nRF52840 connected to the Linux Computer. You can use this FW to switch between the NCP application and the DFU FW. Is that a possibility?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/271597?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 20:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01fc89d8-7b46-4295-a6dd-c830ec1687be</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;I also need this to have USB serial support.&lt;/p&gt;
&lt;p&gt;Is this&amp;nbsp;something Nrdic is going to support DFU over thread through a USB port. Or can you make the source code for the DFU NCP and I will add the USB myself.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/271181?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 17:03:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f73866b6-8dc6-43cc-9ad9-9fa19f6a1a4b</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;I have a custom board with a nrf 52840 on it with a usb connection to a linux computer. I would like the source code to the NCP that talks to the nrfutil and does the DFU for a network. I would like to be able to use the usb serial to DFU the NCP code into the 52840. Then use the NCP to update the rest of the network. Then DFU my custom code back into the 52840.&lt;/p&gt;
&lt;p&gt;Digging down into the nrfutil project I found the hex file for the ncp and how to set the thread network parameters.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the ncp hex file in thegithub nrfutil&amp;nbsp; project is not a DFU able project is it?&lt;/p&gt;
&lt;p&gt;The NCP in the nrfutil also has the nordic IOT included to do the DFU correct?&amp;nbsp; Or is it just a standard thread NCP with COAP enabled?&lt;/p&gt;
&lt;p&gt;Worst case I have to have 2 nrf52840 chips. One for the custom interface and one to do the DFU but that is not the preferred solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thread DFU</title><link>https://devzone.nordicsemi.com/thread/271132?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 14:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6f09eae-425f-4612-8bdd-079e06a13172</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I can not use the DK board and have the nrfutil load the firmware.[/quote]
&lt;p&gt;&amp;nbsp;So what do you intend to use, then?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Is the source code available as an example.[/quote]
&lt;p&gt;&amp;nbsp;The source code for what? A project that changes the master key? I would have to double check this, but I don&amp;#39;t think you can change the master key of the network after it has started. Or do you mean the Master key for the bootloader?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>