<?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>Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90169/application-crashes-during-buttonless-dfu-attempt</link><description>Hi, I am trying to implement buttonless DFU on my nRF52832 on PCA100040. After using the NRF Connect app to initialize DFU, the DFU log on the app gets to the line 
 upon which the log stops and the application seems to crash. Printing to standard output</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Jul 2022 14:29:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90169/application-crashes-during-buttonless-dfu-attempt" /><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378753?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 14:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9325e314-e09d-4ef0-9af9-ea54b0cadf32</guid><dc:creator>tgao</dc:creator><description>&lt;p&gt;Hi, I actually figured out the problem. My NRF_LOGGING is not working and I think when it tries the final flush, it crashes/stalls the application, preventing the shutdown.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378675?ContentTypeID=1</link><pubDate>Tue, 26 Jul 2022 10:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3d369cb-59c1-4acb-ab86-58bf4371ab35</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Based on your description it seems like there is an issue that your application can not trigger a soft reset. It manages to write the retained register GPREGRET but it could not reset.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Did you test this with our buttonless example and do you get the same behaviour there?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Hung explains a bit more about the buttonless procedure in&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h75sjziavjbukzaywg6xlx19np0fm4"&gt;this blog post&lt;/a&gt;, where you also will find the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_buttonless_dfu.html&amp;amp;cp=5_1_4_2_2_6"&gt;the example&lt;/a&gt;. In this code, pay attention to&amp;nbsp;&lt;em&gt;uint32_t ble_dfu_buttonless_bootloader_start_finalize(void)&amp;nbsp;&lt;br /&gt;&lt;/em&gt;as seen in the picture below:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1658831256420v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is where GPREGRET is written, but the reset is not triggered right away. nrf_pwr_mgmt_shutdown() is called to start the shutdown process (soft reset). For some reason the reset was not trigger in your application.&lt;/p&gt;
&lt;p&gt;If you follow the application to where it the reset is triggered, are you able to log if your application enters that function call?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Andreas&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378576?ContentTypeID=1</link><pubDate>Mon, 25 Jul 2022 16:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85de657e-c7fd-4928-9ec4-d634f2805250</guid><dc:creator>tgao</dc:creator><description>&lt;p&gt;Hi, I have some additional information, so when I try DFU it stops at where I assume the device is supposed to reboot into bootloader mode, but it does not. At this time, if I hit the physical reset button on the device, the original app already on the device just reloads and runs. However, if I use the command&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;`nrfjprod -f nrf52 --reset`&lt;/pre&gt; at the time where the process stops, the DFU process actually goes through and runs successfully, as indicated on the NRFConnect app. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378244?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 09:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:272142ee-e3ba-4886-b3ea-24c25f411a3c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Glad you verified. I will then continue working on this case.&amp;nbsp;However, there will be some increased response time due to the current vacation period here in Norway.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378170?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 15:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:466c1ca6-5aeb-40b6-a5e8-8d31af5731f6</guid><dc:creator>tgao</dc:creator><description>&lt;p&gt;The issue has not been solved, I was just adding more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Application crashes during buttonless DFU attempt</title><link>https://devzone.nordicsemi.com/thread/378144?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 14:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee4d3a03-1e39-47f4-91b2-4e410a066de1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]EDIT: I have determined that the device gets through all the buttonless DFU reset process and does go through the system reset into DFU mode. So I guess the issue is that the bootloader doesn&amp;#39;t load the new update and run it correctly.&amp;nbsp;[/quote]
&lt;p&gt;Can you verify if this has solved your issue or if your question has changed to the new suggested issue?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>