<?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>Secure DFU on Thing52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30165/secure-dfu-on-thing52</link><description>Hey all, 
 I&amp;#39;m trying to roll our &amp;quot;own version&amp;quot; of the bootloader for the Thing52. I have followed the instructions to create the PEM file and the public key. I&amp;#39;m able to compile both the application code and the bootloader code. I&amp;#39;ve been merging the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2018 21:17:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30165/secure-dfu-on-thing52" /><item><title>RE: Secure DFU on Thing52</title><link>https://devzone.nordicsemi.com/thread/121133?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2018 21:17:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:774c1801-aefc-498f-9831-77f0441faddb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Important to know. Thanks &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU on Thing52</title><link>https://devzone.nordicsemi.com/thread/120473?ContentTypeID=1</link><pubDate>Sat, 10 Feb 2018 11:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91a90e91-f187-4a91-bfff-245d9a36889b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, thanks for the update. It looks like you did everything correctly apart from the wrong version number. Since you are already migrating to SDK 14, recommend to use v14.1.0 as it includes a fix for a bug the prevented DFU of larger softdevices, see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27862/update-sd-bl-app-from-sdk-v13-to-v14-via-dfu-fails/109838#109838"&gt;thread &lt;/a&gt;for more details.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU on Thing52</title><link>https://devzone.nordicsemi.com/thread/120346?ContentTypeID=1</link><pubDate>Thu, 08 Feb 2018 20:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84a1b9f0-e3a2-43c6-8665-88362032850e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I did give that a try as well. No dice. I ended up leaning towards just converting the existing code to SDK14 as the bootloader/DFU setup is in a better state there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU on Thing52</title><link>https://devzone.nordicsemi.com/thread/119796?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 15:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d5ebf4a-b583-42ae-bf2b-a98fc38286bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The new application FW needs to have a higher version number. Otherwise the bootloader will reject the update. Please try to set&amp;nbsp;&lt;span&gt;--application-version to &amp;#39;1&amp;#39; and see if you get the same result.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;dfu_req_handling.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static nrf_dfu_res_code_t dfu_handle_prevalidate(dfu_signed_command_t const * p_command, pb_istream_t * p_stream, uint8_t * p_init_cmd, uint32_t init_cmd_len)
{ 
   ...
   switch (p_init-&amp;gt;type)
    {
        case DFU_FW_TYPE_APPLICATION:
            if (p_init-&amp;gt;fw_version &amp;lt; fw_version)
            {
                NRF_LOG_ERROR(&amp;quot;FW version too low\r\n&amp;quot;);
                return ext_error_set(NRF_DFU_EXT_ERROR_FW_VERSION_FAILURE);
            }
        break;
        ...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>