<?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>Custom nRF522832 secure BLE DFU bootloader from example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32086/custom-nrf522832-secure-ble-dfu-bootloader-from-example</link><description>Hi all, 
 I am currently trying to develop my own Secure BLE DFU bootloader from the example provided in the SDK 12.3.0. I don&amp;#39;t work on the DK, I have my own board with a nRF522832. 
 The example works fine but when I try to remove one of these lines</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 15 Mar 2018 13:05:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32086/custom-nrf522832-secure-ble-dfu-bootloader-from-example" /><item><title>RE: Custom nRF522832 secure BLE DFU bootloader from example</title><link>https://devzone.nordicsemi.com/thread/124587?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 13:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a42a9b0-1f10-44dc-b779-cae9144e6e8d</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;You can follow the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_5_4_3_1_4#ble_sdk_app_dfu_bootloader_test" target="_blank" rel="noopener noreferrer"&gt;infocenter documentation&lt;/a&gt; to test the bootloader &amp;amp; use a segger rtt viewer for example to see all of the NRF_LOG_INFO() prints inside the bootloader example. Make sure&amp;nbsp;NRF_LOG_ENABLED 1 &amp;amp; NRF_LOG_BACKEND_SERIAL_USES_RTT 1 inside sdk_config.h (they should already be set correctly I believe). Then, you could add more&amp;nbsp;NRF_LOG_INFO() prints to find out where the code is stalling.&lt;/p&gt;
&lt;p&gt;Also, check to make sure the optimization level is set to Level&amp;nbsp;0 so that you get enough debug information out. In Keil, you can do this by clicking on the Project tab -&amp;gt; Options for Target -&amp;gt; C/C++ tab -&amp;gt; Optimization: field (this should be set to Level 3 default). The bootloader will increase in size, but it should still be possible to program the bootloader without having to change the ROM settings.&lt;/p&gt;
&lt;p&gt;In addition, I believe it should be possible to debug inside the IDE you are using too if you prefer that.&lt;/p&gt;
&lt;p&gt;Regarding removing other code, this is just my guess. That is why I think it is a good idea to debug the bootloader to see where the error occurs.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;Update:&lt;/strong&gt; I had previously said you want optimization level 3, but this was wrong. I meant optimization level 0 to get more debug information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF522832 secure BLE DFU bootloader from example</title><link>https://devzone.nordicsemi.com/thread/124518?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 08:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d7543f-8456-457f-9524-54e5943f2276</guid><dc:creator>Bilal Bouguerra</dc:creator><description>&lt;p&gt;Thank you for your answer,&lt;/p&gt;
&lt;p&gt;If I run the debug version of the bootloader, how do I debug it ?&lt;/p&gt;
&lt;p&gt;So if I understand, if I want to remove the leds_init and buttons_init functions I have to remove other things in the libs/drivers code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom nRF522832 secure BLE DFU bootloader from example</title><link>https://devzone.nordicsemi.com/thread/124506?ContentTypeID=1</link><pubDate>Thu, 15 Mar 2018 08:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5da819-eb96-471e-9a91-e1481d93817c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Have you tried running the debug bootloader &amp;amp; debug exactly where in the process this error occurs?&amp;nbsp;The LEDs are related to&amp;nbsp;advertising on the DK, as the&amp;nbsp;LEDs are used to indicate if the bootloader is advertising or is in bootloader mode. In addition,&amp;nbsp;holding in button 4 on the DK during startup will lead to the board entering bootloader mode (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/ble_sdk_app_dfu_bootloader.html?cp=4_0_5_4_3_1" target="_blank" rel="noopener noreferrer"&gt;see link&lt;/a&gt;). It might be that you have not yet updated this functionality in the bootloader code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>