<?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>Update of Softdevice with DFU doesn&amp;#39;t work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37894/update-of-softdevice-with-dfu-doesn-t-work</link><description>Hi! 
 I&amp;#39;m using SDK13 (Softdevice version 4.0.2) and I noticed that during an update via DFU bootloader the update of the Softdevice doesn&amp;#39;t work. 
 After the transmission is successful the bootloader calls nrf_dfu_mbr_copy_sd(), but it returns 0x09 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Aug 2018 06:38:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37894/update-of-softdevice-with-dfu-doesn-t-work" /><item><title>RE: Update of Softdevice with DFU doesn't work</title><link>https://devzone.nordicsemi.com/thread/146212?ContentTypeID=1</link><pubDate>Wed, 29 Aug 2018 06:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f597dbde-7885-45ed-955c-990bb7ab6e62</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is generally nothing that prevents you from updating to a bootloader of the same major version, so I suspect there is either something fishy with the modifications you have done to the bootloader or your upgrade image.&lt;/p&gt;
&lt;p&gt;I am not able to see that&amp;nbsp;&lt;code&gt;sd_mbr_command()&lt;/code&gt; can return&amp;nbsp;&lt;code&gt;NRF_ERROR_INVALID_LENGTH&lt;/code&gt; when handling a&amp;nbsp;&lt;code&gt;SD_MBR_COMMAND_COPY_SD&lt;/code&gt; command, so it seems to me that it is the check on line 68 in nrf_dfu_mbr.c (SDK 13) that is hit. Have you verified that this&amp;nbsp;is not the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update of Softdevice with DFU doesn't work</title><link>https://devzone.nordicsemi.com/thread/146115?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 12:48:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82203ce0-f5be-4c06-808c-93f284faaea1</guid><dc:creator>sonja</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried with an update package containing application &amp;amp; softdevice or bootloader &amp;amp; softdevice but the result was the same: returns NRF_ERROR_INVALD_LENGTH.&lt;/p&gt;
&lt;p&gt;In both cases the Softdevice was the same as already installed so a version issue can&amp;#39;t be the problem except if updating the Softdevice with the same version is not allowed with sd_mbr_command().&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;About the major version check: I missed out that the logic for installing bootlaoder and Softdevice at the same time is different than individually. Now I understand, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update of Softdevice with DFU doesn't work</title><link>https://devzone.nordicsemi.com/thread/146103?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 12:19:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfbb7c8a-8eae-4208-be7d-efb8dcf0fc9c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;2, 3. Do you only attempt to update the SoftDevice, or a combined package containing both the SoftDevice and bootloader? It is not allowed to update the SoftDevice to a different major version without also updating the bootloader, as doing so typically would make the bootloader and SoftDevice incompatible, bricking the device (the only way to recover would be to use a debugger/programmer).&amp;nbsp;See table in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;Getting started with Nordic&amp;#39;s Secure DFU bootloader, a step by step guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regarding the first question I have not been able to see where&amp;nbsp;NRF_ERROR_INVALID_LENGTH is returned from the call to&amp;nbsp;nrf_dfu_mbr_copy_sd(), but I can look more into it tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>