<?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>After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61545/after-dfu-ota-successful-firmware-update-device-needs-to-power-cycle</link><description>Hi, 
 For both (nRF52840 / nRF52832 ), with SDK version nRF5_SDK_15.3.0_59ac345 
 I am using Secure_Bootloader in the eample folder: 
 nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_buttonless_dfu 
 DFU is successful. But after firmware updated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Feb 2021 18:01:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61545/after-dfu-ota-successful-firmware-update-device-needs-to-power-cycle" /><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/295205?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 18:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b6c0b2-e54b-4fae-a28a-1ca1a7c7af07</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Hi RMV,&lt;/p&gt;
&lt;p&gt;This was long time ago. I couldn&amp;#39;t remember what exactly resolved this. I have already handed this firmware to someone else. Based on my best recollection, nRFConnect app for Andriod may not very reliable, while nRF Toolkit app works OK. I believe there is a timeout constant to establish a communication not longer enough. Certainly, that is also related to client-side firmware. I did that way with the purpose of lowering power consumption.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/295204?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 17:51:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e81a7de-58f7-4f88-9b70-b1152431acf4</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;It is not clear to me what the resolution to this problem really is.&lt;/p&gt;
&lt;p&gt;Is it that one should use a specific tool on the phone to explicitly manage the reset sequence? &lt;br /&gt;The nRF Connect and the nRF Toolkit both have DFU capabilities -- does the discussion above suggest that only one of the two actually simulates a full reset of the MCU and start all over as desired?&lt;/p&gt;
&lt;p&gt;Or is this a deficiency in the boot loader firmware that needs to be filled in using an explicit software call to reset the SoC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/253597?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 15:36:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2104483-cef8-406f-8483-a118fbe3af4a</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Amanda,&lt;/p&gt;
&lt;p&gt;I tested again, I found that the DFU reset application and application runs without cold reboot by using the nRFToolBox &amp;ndash; DFU app on the Android Phone.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The application is reset and activated without cold reboot by using nRFconnect tool app &amp;ndash; DFU menu function. But the new loaded application is immediately entering DFU mode again after it is activated by bootloader after updating . That is the reason that the new loaded application behaves not running. A cold reboot certainly clears the state. I confirmed that the new loaded application goes back into application mode by clicking the DISCONNECT menu button on the nRFConnect app without needing a cold reboot. &amp;nbsp;That is the symptom. As far as whether the root cause is because some bad setting on the application code or in the nRF Connect app, I don&amp;rsquo;t know at this point.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With DFU tool in the nRFtoolBox, it seems consistently working ok so far. I think we can live with that by using nRFToolBox only.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/251210?ContentTypeID=1</link><pubDate>Fri, 22 May 2020 09:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33097aa0-289c-42cc-ab28-857fbe9714c5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi David,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you modify the example of&amp;nbsp;&lt;span&gt;ble_app_buttonless_dfu and&amp;nbsp;Secure_Bootloader?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did you combine &lt;span&gt;ble_app_buttonless_dfu&amp;nbsp;&lt;/span&gt;application, bootloader and softdevice image with the&amp;nbsp;&lt;a title="Bootloader settings page" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_buttonless_dfu.html?cp=7_1_4_4_1_1#ble_sdk_app_buttonless_dfu_bootloader_settings"&gt;Bootloader settings page&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would recommend you to go through this blog post in order to get started with our DFU solution:&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/251076?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 19:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba2768bf-1d73-4a4a-bfe7-85f418913094</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;I tested the example&amp;nbsp;ble_app_buttonless_dfu in the folder&lt;/p&gt;
&lt;p&gt;&amp;nbsp; ../nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral&lt;/p&gt;
&lt;p&gt;And I tested on the nRF52840 dev board. The firmware is updated through OTA, but it needs to toggle the power switch to run the application.&lt;/p&gt;
&lt;p&gt;I looked into the ../components/libraries/nrf_bootloader/nrf_bootloader_app_start.c&lt;/p&gt;
&lt;p&gt;there is&amp;nbsp;nrf_bootloader_app_start();&lt;/p&gt;
&lt;p&gt;AND in the nrf_bootoader_app_start_final.c , there is&amp;nbsp;nrf_bootloader_app_start_final(),&amp;nbsp;&amp;nbsp;app_start(), I don&amp;#39;t know which function is the last call to jump to application. Or is it possible the settings generated through nrfutil tool is not right. But application can be started from bootloader after power cycle. I believe there is something in the secure_bootloader code, not resetting the CPU (softReset) after successfully updated firmware. It is difficult to debug bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please help on this item.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/251020?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 14:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ceebfde-8105-460c-aa29-96d1e787aeab</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Amanda,&lt;/p&gt;
&lt;p&gt;Sorry, I must have copied from other places.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But my main question is Bootloader seems not resetting after firmware update. That should be in the securebootloader, right? The secure_bootloader is the one under dfu folder.&lt;/p&gt;
&lt;p&gt;Any suggestions to what part is missing for not doing software reset?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;david&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/250947?ContentTypeID=1</link><pubDate>Wed, 20 May 2020 11:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4313a85e-ab63-4a44-bf9c-71e2442762e4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi David,&lt;/p&gt;
[quote user="TigerD"]//NRF_POWER-&amp;gt;GPREGRET = BOOTLOADER_DFU_START;[/quote]
&lt;p&gt;&lt;span&gt;I could not find this code in the main.c of&amp;nbsp;&lt;a title="Buttonless DFU Template Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_buttonless_dfu.html?cp=7_1_4_4_1"&gt;Buttonless DFU Template Application&lt;/a&gt; example. Which example are you using? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Power.&lt;a title="  GPREGRET  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=4_2_0_17_8_6#register.GPREGRET"&gt;GPREGRET&lt;/a&gt;&amp;nbsp;register is the&amp;nbsp;&lt;/span&gt;&lt;span&gt;general purpose retention register.&amp;nbsp;&lt;a title="BOOTLOADER_DFU_START" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/group__nrf__bootloader__info.html?cp=7_5_0_6_11_7_5_6#ga5590b8ff0089e88358e46c506f54a688"&gt;BOOTLOADER_DFU_START&lt;/a&gt;&amp;nbsp;is a m&lt;span&gt;agic number to signal that the bootloader should enter DFU mode because of the signal from Buttonless DFU in the main app.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="TigerD"]//peer_manager_Init();&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;peer_manager_Init() is used to initial &lt;a title="Peer Manager" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_peer_manager.html?cp=7_1_3_2_7"&gt;Peer Manager&lt;/a&gt;&amp;nbsp;which manages BLE security (encryption, pairing, and bonding). &lt;/span&gt;Please see the&amp;nbsp;&lt;span&gt;Peer Manager&amp;nbsp;&lt;/span&gt;&lt;a title="Usage" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_pm_usage.html?cp=7_1_3_2_7_2"&gt;Usage&lt;/a&gt;&amp;nbsp;section&amp;nbsp;for the detail.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: After DFU (OTA) successful firmware update, device needs to power cycle</title><link>https://devzone.nordicsemi.com/thread/250742?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dec39e6c-af8c-4d52-8c85-f02e5ea01b05</guid><dc:creator>TigerD</dc:creator><description>&lt;p&gt;Also, in my application code, main.c,&amp;nbsp; I commented out:&lt;/p&gt;
&lt;p&gt;//NRF_POWER-&amp;gt;GPREGRET = BOOTLOADER_DFU_START;&lt;/p&gt;
&lt;p&gt;//peer_manager_Init();&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The OTA firmware update still works. I don&amp;#39;t know what functional roles for both lines of code?&lt;/p&gt;
&lt;p&gt;Is it safe if they are commented out? I tested it seems to work with or without.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>