<?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>nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78709/nrf52810-buttonless-dfu-not-working</link><description>Hello all: 
 
 I&amp;#39;ve developed an nRF52810 application based on the UART example, but when I include buttonless DFU support to my application, it doesn&amp;#39;t work. I&amp;#39;m using SDK 17.0.2, SD 112 7.2.0 
 The instructions followed are shown here . In summary:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Sep 2021 13:36:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78709/nrf52810-buttonless-dfu-not-working" /><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/328227?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 13:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0809c26-6cfd-47dc-a932-c95da0ef71a6</guid><dc:creator>helsing</dc:creator><description>&lt;p&gt;Hi Marta,&lt;/p&gt;
&lt;p&gt;It looks like my colleague replied to almost the same question&amp;nbsp;in your &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/79320/dfu-doesn-t-work-in-nrf-connect-app"&gt;other case&lt;/a&gt;. Please let us know if you have any more questions regarding the topic of this ticket.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/327710?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 07:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4f1496d-f7c0-4d1f-a965-50b67f82bffe</guid><dc:creator>Marta L</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve got another issue related to this ticket. It&amp;#39;s because i&amp;#39;m able to update the firmware by an nRF52 dev kit + PC (nRF Connect for Desktop), but when I try to do the same process with a mobile phone (app nRF Connect) I get an error.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m doing the following steps:&lt;/p&gt;
&lt;p&gt;Connect to the board I want to update -&amp;gt; DFU -&amp;gt; Select file type: Distribution packet (ZIP) -&amp;gt; Drive -&amp;gt;&amp;nbsp; select zip file.&lt;/p&gt;
&lt;p&gt;It starts DFU but I get &amp;quot;Error&amp;nbsp; (0x8): GATT CONN TIMEOUT&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1630566239664v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you know why this is happening?&lt;/p&gt;
&lt;p&gt;Marta&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/326908?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 07:53:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9c6096a-8d44-413e-b943-03b37325b8e2</guid><dc:creator>Marta L</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sorry for the delay in replying.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Finally, I solve the debug issue writting in flash the program after start debugging.&lt;/p&gt;
&lt;p&gt;Also, I&amp;nbsp;did all the changes related to the DFU buttonless and adapted the blinky example to my application and it works. I don&amp;#39;t know why it didn&amp;#39;t worked with the UART example but it&amp;#39;s not a problem now.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks for your help!&lt;/p&gt;
&lt;p&gt;Marta&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/325725?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 12:12:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb995ead-71ab-4559-a51e-54d300c5bc26</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marta,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;When you debug the blinky application, please make sure that you don&amp;#39;t have the SES project of the bootloader also in debug mode.&amp;nbsp;&lt;br /&gt;You can try trigger a reset from the Debug menu in the blinky application. If it doesn&amp;#39;t jump to the application, please pause and check where the PC is.&amp;nbsp;&lt;br /&gt;Note that you should have the exact same application that you DFU update via the bootloader. If you have any modification (for example switch from &amp;quot;release&amp;quot; to &amp;quot;debug&amp;quot; compiling mode or if you change anything) the CRC check will not match and the bootloader will not jump to the application.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/325643?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 07:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a34e8131-ae0f-4b9e-a859-3fd19e44d489</guid><dc:creator>Marta L</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve written to flash SD+BL+Blinky BLE + BL Setting. As a result, the bootloader works well and the program enter to the Blinky app. I can see &amp;quot;Nordic_Blinky&amp;quot; device advertising.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;able to debug from the Secure bootloader code, but when I try to do it from the Blinky application, it never jumps into the app. I&amp;#39;m working with SEGGER Embedded Studio 5.5.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Marta&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/325532?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 13:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a18c82bf-a99b-45f9-a18f-323a5215b008</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marta,&lt;/p&gt;
&lt;p&gt;Please don&amp;#39;t skip the step, just test doing SD+BL+Blinky app + BL Setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We need to verify that the application can be updated and can run normally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can test first with the simple blinky that only does LED Blink, no BLE. After it &amp;#39;s verified, you can test with the BLE blinky.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I suspect that the app (that you added DFU Buttonless)&amp;nbsp; may crash for some reason. You can try debug it, if the bootloader works as it should you should be able to stop the PC at main() in the application when debugging.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/325519?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 12:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93df5dea-2faa-4c66-bdf9-56714348d2e0</guid><dc:creator>Marta L</dc:creator><description>&lt;p&gt;Thanks for your quick reply, Hung.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve done the suggested test: DFU bootloader works well, i can update the blinky application. After that, I&amp;#39;ve modified the RAM parameters&lt;span&gt;, added dfu .c files to project, added preprocessor definitions, added include directories and all the&amp;nbsp;DFU buttonless support to the blinky application. Then, i&amp;#39;ve generated the BL settings with the following command:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate --family NRF52810 --application ble_app_blinky_pca10040e_s112.hex --application-version-string &amp;quot;2.0.0&amp;quot; --bootloader-version 2 --bl-settings-version 2 bl_setting.hex
&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then, i&amp;#39;ve written to flash SD + BL + APP + BL setting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now, i can&amp;#39;t see any device advertising. However, i&amp;#39;ve checked that the application is valid looking at&amp;nbsp;app_is_valid(). I&amp;#39;ve noticed that the reason of my previous mistake (the program didn&amp;#39;t jump to the application) was that I was using an incorrect bootloader settings file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now, this is solved, but... why I can&amp;#39;t see my application? Do you think it could be related to the memory limits of the chip?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Marta&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: nRF52810 buttonless DFU not working</title><link>https://devzone.nordicsemi.com/thread/325440?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 09:34:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbeff691-e4e0-49c4-ba91-fbd0c264cca3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marta,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;To narrow down the issue, I would suggest to do the following test:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. Please test doing DFU update with the bootloader. This is to verify that your bootloader is working well. I have made a blog that you can follow &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here&lt;/a&gt;. You can just update a simple application for example blinky application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Try generating the bootloader setting for the blinky application. Then write to flash the SD + BL + APP + BL setting. Please don&amp;#39;t use mergehex at this point.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#39;t work please show the script you used to generate the BL setting.&amp;nbsp;&lt;br /&gt;You can think of building the bootloader in debug setting so that you can step into the code and check why it doesn&amp;#39;t jump to the application. The function that check if the bootloader should enter the application is in&amp;nbsp;app_is_valid() in nrf_bootloader.c&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You may also want to check if the&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN is always 0 or not. If it&amp;#39;s 0, then the DFU bootloader will enter DFU mode anyway (check&amp;nbsp;dfu_enter_check() )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>