<?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>Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82126/mesh-dfu-not-terminating-after-update-is-complete</link><description>Hello there, 
 Recently I have added and been testing DFU into my existing application. I have conducted a few DFU updates and have noticed a semi-reoccurring issue. I use the nRF SDK for Mesh 5.0.0, and followed the &amp;quot;Configuring and performing DFU&amp;quot; page</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Dec 2021 13:24:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82126/mesh-dfu-not-terminating-after-update-is-complete" /><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/342343?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 13:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f82a9f6c-db75-4f3f-bffc-154b1ac062e9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jeffe,&amp;nbsp;&lt;br /&gt;Thanks for the info. Please keep us updated if you observe the issue again. I suspect that it might a corner case that hard to reproduce.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The link to the RTT case was unfortunately a private case. So that&amp;#39;s why you couldn&amp;#39;t read it. But it&amp;#39;s about an issue of RTT memory conflict between application and bootloader.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/342182?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 22:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9450efd-c8d0-4667-be2d-dbf12c2ab3b3</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Apologies for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So far the issue is fairly uncommon and difficult to reproduce. I had no luck reproducing it so far. Let me know if the Mesh Developers decide to introduce a timeout before starting new relaying as I will be interested in such a patch. At the moment, however, I have become busy with other things so I will come back to this issue in the future and investigate at a much later date.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The link for the bootloader RTT logging problem is broken (I get &amp;quot;Access Denied&amp;quot;)? But anyways it is a bummer that RTT logging does not work for the bootloader. On the other hand, I figured out how to build the bootloader with cmake thanks to your links.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also thank you for the segger embedded studio project file, I will keep a bookmark on that when I come back to this. Thank you for your support!&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/341692?ContentTypeID=1</link><pubDate>Thu, 02 Dec 2021 12:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec4f9c3b-5e42-4f04-84ac-84f794d070f2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jeffe,&lt;br /&gt;My name is Hung. I&amp;#39;m taking over the case from Håkon.&lt;/p&gt;
&lt;p&gt;We are suspecting your issue is similar to this case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56151/mesh-dfu-relay-problem"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56151/mesh-dfu-relay-problem&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But it should be solved from SDK v4.2 and it&amp;#39;s a corner case where there is no application on one of the board (just Softdevice and Bootloader) in your case it&amp;#39;s a bit different. For some reason the FWID beaconing has been relayed forever in the network. This should not happen normally. If you observed the issue again please let us know. We are thinking of having to introduce a timeout before starting new relaying at:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/master/examples/dfu/src/main.c#L149"&gt;https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh/blob/master/examples/dfu/src/main.c#L149&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regarding your question, the problem with RTT logging for the bootloader is that we have an issue that the RTT logging for application will take over and that&amp;#39;s why you don&amp;#39;t see any log from the bootloader. We haven&amp;#39;t got a clear solution for that. You can have a look at the answer &lt;a href="https://devzone.nordicsemi.com/support-private/support/230738#permalink=477202"&gt;here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; But if you want to be easier to debug the bootloader you can think of using the Segger Embedded Studio project for bootloader. We provided one here for SDK v4.x:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51534/stepping-through-nrf-mesh-bootloader-code-in-segger-embedded-studio"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51534/stepping-through-nrf-mesh-bootloader-code-in-segger-embedded-studio&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/341597?ContentTypeID=1</link><pubDate>Wed, 01 Dec 2021 21:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24d521ed-8372-4c8b-bd51-4f3fc914996a</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;Ok I have done a couple of DFU on a test mesh network (same network as the one in the initial post), and so far I have not been able to replicate it (i did about 7-8 DFU updates with the application). It seems like this issue is not common although the uncertainty is not ideal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to recompile the bootloader so that it can print to&amp;nbsp;RTT, however, I am not sure how to compile it. I have followed the instructions in the infocenter and I am able to build the examples with cmake without issues.&amp;nbsp;However, when attempting to build the bootloader, nothing happens at all (i run the makefile generated by cmake in the mesh bootloader directory, and it did nothing). How do you compile the mesh bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/341140?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 16:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f50cd744-c013-451e-a6e9-be24decdfc02</guid><dc:creator>Jeffe</dc:creator><description>&lt;p&gt;Alright, thank you for looking into this!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the meantime I will conduct more DFU tests to see if I can figure out if there is a way to reliably replicate this issue, since at the moment it only happens&amp;nbsp;sometimes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not terminating after update is complete</title><link>https://devzone.nordicsemi.com/thread/341127?ContentTypeID=1</link><pubDate>Mon, 29 Nov 2021 15:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f2216c1-3c8b-4edb-b5bd-2b7594a4e218</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey Jeffe!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking into it, but I will have to get back to you.&lt;/p&gt;
&lt;p&gt;Though the DFU is being relayed to make sure that all nodes gets it, and they wouldn&amp;#39;t have much of a way of knowing that every node already does. Normally you could limit the TTL if you would like the relaying to stop faster, though the proprietary DFU in our&amp;nbsp;Mesh SDK uses the&amp;nbsp;&lt;span&gt;IETF Trickle algorithm instead, so it might not be&amp;nbsp;that easy.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>