<?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>BLE Secure DFU Bootloader - Noob Doubts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39342/ble-secure-dfu-bootloader---noob-doubts</link><description>Hello, 
 I have a working application on nrf52832, running sdk version 15.0 and SD132 version 6.0.0. Now I would like to add dfu functionality. I followed the instructions at https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Oct 2018 11:01:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39342/ble-secure-dfu-bootloader---noob-doubts" /><item><title>RE: BLE Secure DFU Bootloader - Noob Doubts</title><link>https://devzone.nordicsemi.com/thread/152468?ContentTypeID=1</link><pubDate>Thu, 11 Oct 2018 11:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589ca336-6b53-4863-9079-72376ab9468f</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. The size of the hex file is much larger than the actual size of the binary data, as it is an ASCII encoded version of the binary data including addresses, checksums and other commands in addition to the data itself. See the &lt;a href="https://en.wikipedia.org/wiki/Intel_HEX"&gt;Intel HEX Wikipedia article&lt;/a&gt; for more information on the format of hex files, and for examples.&lt;/p&gt;
&lt;p&gt;2. BL settings version is needed so that the bootloader knows the format of the settings page is correct. If it is different from what the bootloader expects then it will treat it as if it was empty.&lt;/p&gt;
&lt;p&gt;For the other settings in 2., and for 3. and 4., I refer to the &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/39342/ble-secure-dfu-bootloader---noob-doubts/152412#152412"&gt;answers&lt;/a&gt; provided by&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/dbeckwith"&gt;WestCoastDaz&lt;/a&gt;. I might add for 4. that the inactivity timeout is used regardless of how you enter DFU mode.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Secure DFU Bootloader - Noob Doubts</title><link>https://devzone.nordicsemi.com/thread/152412?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 17:56:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02389d6b-a455-4e62-8cee-cf67dfa1baf2</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Here are the answers to most of your questions:&lt;/p&gt;
&lt;p&gt;1. Sounds like you are building the debug version of the bootloader.&amp;nbsp;&amp;nbsp; The debug version enables all of the log statements which end up making the bootloader very large.&amp;nbsp; That said from the image above it looks like you are using the hex file size which will always be large than a binary file given it&amp;#39;s in ASCII and includes the metadata for address location.&lt;/p&gt;
&lt;p&gt;2. Even if you don&amp;#39;t plan on updating the bootloader or SD you need these regardless as the DFU will use some of them to ensure compatibility during a DFU.&amp;nbsp; I don&amp;#39;t believe there is a why to block bootloader or SD updates.&amp;nbsp; Also in my experience being able to update the bootloader isn&amp;#39;t something we planned on using either but it saved us in a recent project.&lt;/p&gt;
&lt;p&gt;3. Have you looked at the ble_app_buttonless_dfu example?&amp;nbsp; This details how to go about doing this.&amp;nbsp; In my experience I don&amp;#39;t like the fact that a write to flash is required every time I want to enter the bootloader so I use&lt;/p&gt;
&lt;div style="background-color:#1e1e1e;color:#d4d4d4;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#dcdcaa;"&gt;NRF_BL_DFU_ENTER_METHOD_GPREGRET&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;4. Your understanding for boot is correct.&amp;nbsp; The &lt;span&gt;&lt;/span&gt;&lt;strong&gt;NRF_BL_DFU_INACTIVITY_TIMEOUT_MS &lt;/strong&gt;is used to if you enter the bootloader from the application and no BLE activity is occurs within the timeout.&amp;nbsp; Without this it would be possible to for your application to stay in the bootloader indefinitely if it was entered from the application.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>