<?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 how to update Softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68561/mesh-dfu-how-to-update-softdevice</link><description>We have a device with the following configuration: 
 
 nrf5_SDK_for_Mesh_v3.1.0 
 nRF5_SDK_15.2.0 
 s140_nrf52_6.1.0_softdevice 
 mesh_bootloader_gccarmemb_nrf52840_xxAA 
 
 Our task: Update a device using Mesh DFU to this configuration: 
 
 nrf5_SDK_for_Mesh_v4</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 11:58:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68561/mesh-dfu-how-to-update-softdevice" /><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/284502?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 11:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f878934d-d6a9-4f9d-a2ee-456a8bd93c20</guid><dc:creator>ThomasH</dc:creator><description>&lt;p&gt;Hi Martin&lt;/p&gt;
&lt;p&gt;nevertheless this the result is quite disapointing after I have read in several places in DevZone and in the Infocenter that updating is possible.&lt;/p&gt;
&lt;p&gt;Thanks for your investigations.&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/284442?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 07:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8152b62-ac9b-4b2c-b760-a14e11806361</guid><dc:creator>JeffZy</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;thanks for your response. We will work on a customized solution.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Br,&lt;/p&gt;
&lt;p&gt;Jeff&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/284400?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 17:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:349ccb0a-d318-4109-88bd-4bf5f681b078</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&lt;/p&gt;
&lt;p&gt;Unfortunately upgrading the SD with a larger footprint is not possible with Mesh DFU. Even though the upgrade might succeed, the application won&amp;#39;t start (or cannot be upgraded to new application), because the application start address is fixed in the device page.&amp;nbsp; Each major revision of the SoftDevice changes its flash footprint.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only way around this (without re-flashing the devices), would be to do some customary trick in the application to update the device page with new values for the application start, length, and softdevice length. More details about device page can be found in the SDK documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/283352?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 14:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae33dd7b-d4e8-4c03-a6bd-df7423b28600</guid><dc:creator>ThomasH</dc:creator><description>&lt;p&gt;Hi Martin&lt;/p&gt;
&lt;p&gt;is there any progress on this issue? We really need a solution for this&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/282656?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 12:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:414637b8-57a2-4fcd-a2a9-f4c1fd4d0744</guid><dc:creator>JeffZy</dc:creator><description>&lt;p&gt;That sounds great. Many thanks in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/282654?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 12:30:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4eee9ef-308f-454e-beeb-1e740524e284</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply&lt;/p&gt;
&lt;p&gt;I have asked the Mesh team to clarfify this, I will give you an update as soon as I get a response from the team.&lt;/p&gt;
&lt;p&gt;Thank you for your patience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/282596?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 08:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:675c2142-4973-4c4d-9766-f3f7f3311763</guid><dc:creator>JeffZy</dc:creator><description>&lt;p&gt;No ideas? This is an urgent case.&lt;/p&gt;
&lt;div style="left:-331px;position:absolute;top:23px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/282122?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 14:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae634ef0-d152-4d7f-abd6-9e442882e7a8</guid><dc:creator>JeffZy</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;now we can run the SoftDevice (SD) DFU (checking softdeivce versions in the case&amp;nbsp;&lt;span&gt;NRF_MESH_DFU_TYPE_SOFTDEVICE works). &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;But there is an other problem:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The old application runs with SD 6.x.x with FLASH_START=0x26000, but SD 7x.x needs more flash therefore the application should start at&amp;nbsp;FLASH_START=0x27000.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After performing the DFU SD 6.x.x -&amp;gt; SD 7.x.x the application does not start, I guess because the application start (0x26000) is overwritten by the new SD.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We prepared a new application DFU package for SD 7.x.x and&amp;nbsp;FLASH_START=0x27000.&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How can we update now the application? &lt;br /&gt;&lt;/strong&gt;&lt;span style="color:#ff00ff;"&gt;I thought the bootloader would start automatically the DFU mode without the running application, but it seems not doing this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jeff&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281630?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 15:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd42589a-9e47-49f9-b56a-525ae6a304e5</guid><dc:creator>ThomasH</dc:creator><description>&lt;p&gt;Dear Martin&lt;/p&gt;
&lt;p&gt;thank you for the answer&lt;/p&gt;
&lt;p&gt;We will try it.&lt;/p&gt;
&lt;p&gt;Kind regards ,&lt;/p&gt;
&lt;p&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281620?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2020 14:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0866afbd-56a4-4150-a2d0-3b4550ccf059</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like you have to implement it yourself. You need to modify the code and let it accept Softdevice transfers. Under the case&amp;nbsp;&lt;span&gt;NRF_MESH_DFU_TYPE_SOFTDEVICE, you have to check for the incoming softdevice versions(similar to the other cases) and change the return from &amp;quot;false&amp;quot; to &amp;quot;true&amp;quot;. So do the checks first before returning &amp;quot;true&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281378?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0803127f-4f22-4b00-87a2-243303afc64a</guid><dc:creator>ThomasH</dc:creator><description>&lt;p&gt;Hi Mttrinh,&lt;/p&gt;
&lt;p&gt;thanks for your fast response. We did all the steps, but we think the problem is still in the&lt;code&gt; fw_update_is_for_me()&lt;/code&gt; function on the server node (DFU receiver).&lt;/p&gt;
&lt;p&gt;If we perform an application or bootloader DFU, application and bootloader IDs will be checked. The function &lt;code&gt;fw_update_is_for_me()&lt;/code&gt; will return &lt;code&gt;true&lt;/code&gt;, if the new ID (sent by DFU) is higher than the current one on the device page (flash). This will call &lt;code&gt;nrf_mesh_dfu_request()&lt;/code&gt; and we can see how the new DFU data is written to the flash.&lt;/p&gt;
&lt;p&gt;If we run the SoftDevice DFU, the function returns &lt;code&gt;false&lt;/code&gt; and&lt;code&gt; nrf_mesh_dfu_relay()&lt;/code&gt; is called. We can not see any new data on flash.&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Thomas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281371?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 15:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd6b18b5-4b6a-4ac6-b9b2-2d7c684433eb</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Did you go through the guide I pointed to in my previous reply? It is a step by step guide on how you can do Mesh DFU, how you can update the softdevice with Mesh DFU. Also, it shows how you can generate the DFU pacakge for the Softdevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281364?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 14:48:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c512b1c6-7862-4301-b763-7c0585ff476e</guid><dc:creator>ThomasH</dc:creator><description>&lt;p&gt;Dear Mttrinh&lt;/p&gt;
&lt;p&gt;could you please answer my additional questions within point 1? ( the questions in magenta and the code)&lt;br /&gt;Unfortuantely your answer for the first point is not helping me any further.&lt;/p&gt;
&lt;p&gt;How can we get &lt;code&gt;true&lt;/code&gt; as return value in &lt;code&gt;fw_updated_event_is_for_me()&lt;/code&gt;? It returns always &lt;code&gt;false&lt;/code&gt; if we run SoftDevice DFU, because of this case (taken from &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;examples/dfu&lt;/strong&gt;&lt;/span&gt; in Mesh SDK v4.2):&lt;/p&gt;
&lt;p&gt;&lt;code&gt;case NRF_MESH_DFU_TYPE_SOFTDEVICE:&lt;/code&gt;&lt;br /&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Thomas&lt;code&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU how to update Softdevice</title><link>https://devzone.nordicsemi.com/thread/281352?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 14:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c46566-8eee-4754-bc1c-c7eae2686da9</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;1/ is it possible to update the softdevice with Mesh DFU?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Yes, it is possible to update the Softdevice with Mesh DFU.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;2/ Is it possible to update the application &lt;span style="text-decoration:underline;"&gt;AND&lt;/span&gt; the softdevice with a &lt;span style="text-decoration:underline;"&gt;single&lt;/span&gt; update package (only 1 zip file)?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Unfortunately, you can&amp;#39;t do this. You will need to update them seperately one by one. It&amp;#39;s better to update the Softdevice first(assuming the old bootloader is compatible with the new one), then the application.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;span style="color:rgba(0, 0, 255, 1);"&gt;&lt;strong&gt;3/ is there a tutorial how (&lt;span style="text-decoration:underline;"&gt;and in which sequence&lt;/span&gt;) to update the SW parts (Bootloader, Softdevice, Application)?&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I suggest you look through this, &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v5.0.0/md_doc_user_guide_modules_dfu_configuring_performing.html" rel="noopener noreferrer" target="_blank"&gt;Configuring and performing DFU over Mesh&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>