<?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>SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86200/sdk-16-nrf52840-buttonless-dfu---how-to-debug-the-app</link><description>Hi guys, 
 I am experimenting with OTA buttonless DFU. 
 I included the Buttonless Secure DFU Service to my application and I managed to flash the new image over the air through buttonless DFU 
 Now, what if I want to include new features in my application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Apr 2022 13:27:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86200/sdk-16-nrf52840-buttonless-dfu---how-to-debug-the-app" /><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/364496?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 13:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ad81c3a-c30b-49d9-acf9-1ecbb2112c38</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;That&amp;#39;s clear!! Thank you a lot &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/364493?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 13:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a03f8887-37b1-4eb1-aa63-a8e36f5bc208</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikos,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;No, the bootloader and bootloader setting is located at different place from the application. See the memory layout &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=8_1_3_5_0_7#lib_bootloader_memory"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you do &amp;quot;build and run&amp;quot; or &amp;quot;build and debug&amp;quot; SES will only erase the area that the application occupied and leave the other area untouched.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to erase the entire chip please follow the commands here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/erase_board_ses.html?cp=1_0_2_6_0"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/erase_board_ses.html?cp=1_0_2_6_0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/364429?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2022 10:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ff6104-a7e3-4e18-ac9a-6645fadc0fbf</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thank you Hung,&lt;/p&gt;
&lt;p&gt;When we update the app and download it to the target through &amp;quot;Build and Debug&amp;quot; or &amp;quot;Build and Run&amp;quot;, why we do not need to flash the bootloader and the settings again?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1650623462996v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I mean, we flash the bootloader and the settings during the first time flashing through nrfjprog. When we update or debug the app through SES, the bootloader and the settings are not erased from the memory?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/363468?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 08:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e91c8346-0d66-4f25-a94c-50b35cd4bbb4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikos,&amp;nbsp;&lt;br /&gt;Yes it&amp;#39;s the correct sequence for an image to be used in an end product. Please don&amp;#39;t forget to remove the modification that I suggested in previous reply after you are done with the development.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/363270?ContentTypeID=1</link><pubDate>Thu, 14 Apr 2022 08:51:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b6e066-a71c-4aed-b05a-a563879e9f48</guid><dc:creator>Nikosant03</dc:creator><description>&lt;p&gt;Thank you Hung,&lt;/p&gt;
&lt;p&gt;I went through modifying&amp;nbsp;&lt;span&gt;nrf_bootloader.c and it works fine. Could you please verify the following step sequence to perform buttonless OTA DFU?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;First time flashing:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Build the app&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Generate the bootloader settings&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Merge and flash app + settings + bootloader + sd&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If I want to update the firmware:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Update and build the firmware&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Generate the .zip file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Start secure DFU&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the correct sequence?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 16 nRF52840 Buttonless DFU - How to debug the app</title><link>https://devzone.nordicsemi.com/thread/359984?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 12:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e2ba5f5-c22f-43cf-9c9f-da175ff3acde</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nikos,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are developing your application and need to update the application, you can modify the dfu_enter_check() in the nrf_bootloader.c to remove the CRC check on each boot:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1184.pastedimage1648209743846v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you comment out this or change it to return false then the bootloader will enter the app regardless if it&amp;#39;s been modified and flashed via the&amp;nbsp;debugger/programmer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After this modification, you can just flash both bootloader and application to the flash. Then you can modify and debug the application as normal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another option is to autogenerate a bootloader setting that matched with your new app. Then flash both the app and the bootloader setting via the debugger/programmer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>