<?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>Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21324/problem-with-bootloader-mode-after-dfu-procedure</link><description>Hello, 
 I have been investing a couple days now in order to get the DFU procedure working properly, but it seems I am stuck... 
 This the setup that I am currently using: 
 nRF52832 DK
Nordic SdK v12.2.0
Eclipse Neon 2
GCC-Toolchain (GNU-Arm-Tools</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Apr 2017 09:36:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21324/problem-with-bootloader-mode-after-dfu-procedure" /><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83528?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 09:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d3ce85-625b-4055-a902-45039ec6dff3</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Duplicate: &lt;a href="https://devzone.nordicsemi.com/question/129614/help-with-restarting-debugging-and-size-limitations-for-dfu-procedure-needed/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83527?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 13:12:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a63b9518-e66e-49b9-a90a-d048a311ebd9</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;Here is also the output of my flashing procedure:&lt;/p&gt;
&lt;p&gt;Part 1 (eraseall)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;make VERBOSE=1 erase 
nrfjprog --eraseall -f nrf52
Erasing code and UICR flash areas.
Applying system reset.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Part2 (flashing softdevice)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;make VERBOSE=1 flash_softdevice 
Flashing: s132_nrf52_3.0.0_softdevice.hex
nrfjprog --program ../../../../../../components/softdevice/s132/hex/s132_nrf52_3.0.0_softdevice.hex -f nrf52 --sectorerase 
Parsing hex file.
Erasing page at address 0x0.
Erasing page at address 0x1000.
Erasing page at address 0x2000.
Erasing page at address 0x3000.
Erasing page at address 0x4000.
...
Erasing page at address 0x1B000.
Erasing page at address 0x1C000.
Erasing page at address 0x1D000.
Erasing page at address 0x1E000.
Applying system reset.
Checking that the area to write is not protected.
Programing device.
nrfjprog --reset -f nrf52
Applying system reset.
Run.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Part 3 (flashing bootloader_secure-example)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;make VERBOSE=1 flash 
Flashing: _build/secure_dfu.hex
nrfjprog --program _build/secure_dfu.hex -f nrf52 --sectorerase
Parsing hex file.
Erasing page at address 0x78000.
Erasing page at address 0x79000.
Erasing page at address 0x7A000.
Erasing page at address 0x7B000.
Erasing page at address 0x7C000.
Erasing page at address 0x7D000.
Applying system reset.
WARNING: A UICR write operation has been requested but UICR has not been
WARNING: erased. Please verify that the result is correct.
Checking that the area to write is not protected.
Programing device.
nrfjprog --reset -f nrf52
Applying system reset.
Run.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Part 4 (DFU through nRF Toolbox-app)&lt;/p&gt;
&lt;p&gt;Now I can discover a bt-device DfuTarg within the nRF Connect-app and LED1+LED3 on the nRF52832 DK are lighted up. After selecting the generated pkg-file for the buttonless_dfu-example (see initial post) and the device DfuTarg within the nRF Toolbox-app, I can start the dfu-procedure. When I press &amp;#39;Upload&amp;#39; the nRF52832 DK is showing a connection state, with LED1 going off while LED2 goes on. The upload-progress gets shown in the app and finally I get the message &amp;#39;Application has been transferred successfully.&amp;#39;, which is resulting in a reset and them immediatly I am back in the bootloader-mode.&lt;/p&gt;
&lt;p&gt;Maybe someone could verify this behaviour with the given files in my initial post!?&lt;/p&gt;
&lt;p&gt;[Edit:] Apparently the problem wasnt the dfu-procedure itself, but some issue within both the bootloader_secure-example and the ble_dfu_send_hex-example regarding the need of doing a hard off-/on-switching for the nRF52832 DK in order to get to the application after completing the dfu-procedure! Isnt it possible to integrate the same kind of &amp;#39;system-restart&amp;#39; automatically within the code?&lt;/p&gt;
&lt;p&gt;[Edit2:] Now I also added a watchdog-timeout to the bootloader_secure-example (used this &lt;a href="https://devzone.nordicsemi.com/question/103394/s130-dfu-ble-bootloader-no-timeout/"&gt;tutorial&lt;/a&gt;) which gets triggered after 30s of idle-time, but unfortunately this timeout only triggers a soft-reset which isnt enough to get to the application again...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83526?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 12:11:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feb87df2-cfce-40ce-a197-76bfeb568155</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;Now only the problems &lt;code&gt;3.1 (bootloader being stuck - not starting the application)&lt;/code&gt;, &lt;code&gt;3.2 (REMOTE DFU DATA SIZE EXCEEDS LIMIT-error)&lt;/code&gt; and &lt;code&gt;3.3 (debugging bootloader_secure-example)&lt;/code&gt; remain, where I would realy appreciate some help...&lt;/p&gt;
&lt;p&gt;[Edit:] Attached all of my used files in the initial post for further investigations!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83525?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2017 12:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efb26d42-704e-4b6d-9e42-2bd99447ec16</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;After integrating the bug-fix for writing into the characteristic of the buttonless-dfu-service (see &lt;a href="https://devzone.nordicsemi.com/question/93414/sdk12-ble_app_buttonless_dfu/?answer=95079#post-id-95079"&gt;here&lt;/a&gt;), it is also possible to request a restart in bootloader-mode which results in the following messages:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;...
APP:INFO:Device is entering bootloader mode!
:INFO:Erasing old settings at: 0x0007f000
:INFO:Erasing: 0x0007f000, num: 1
:INFO:Writing 0x00000057 words
:INFO:Writing settings...
:INFO:Obtained settings, enter dfu is 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So I am assuming the buttonless-dfu-example works pretty much as expected, even though it needed some adjustments which should have long been integrated officially into the recent SDK-releases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83524?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 14:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce31c653-f58e-4ab3-a713-01a45f0e90d3</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;As for the problem in (2) I came across this topic &lt;a href="https://devzone.nordicsemi.com/question/93414/sdk12-ble_app_buttonless_dfu/"&gt;here&lt;/a&gt;, which mentioned a potientially missing part in the MEMORY-block and also in the SECTIONS-block of the corresponding loader-file.&lt;/p&gt;
&lt;p&gt;Now I am getting the following output for the buttonless_dfu-example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:INFO:running nrf_dfu_settings_init
:INFO:!!!!!!!!!!!!!!! Resetting bootloader settings !!!!!!!!!!!
:INFO:Erasing old settings at: 0x0007f000
:INFO:Erasing: 0x0007f000, num: 1
:INFO:Writing 0x00000057 words
:INFO:Writing settings...
:INFO:running nrf_dfu_settings_init
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When activating/deactivating notifications for the &lt;code&gt;Nordic_Template-Device&lt;/code&gt; I am also seeing those messages:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;APP:INFO:Indication for BLE_DFU is enabled
APP:INFO:Indication for BLE_DFU is disabled
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Is that the expected behaviour!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with bootloader-mode after DFU procedure</title><link>https://devzone.nordicsemi.com/thread/83523?ContentTypeID=1</link><pubDate>Wed, 12 Apr 2017 13:01:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f2bd0f5-3159-42fb-ac53-ee92ef63165f</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;Just checked this topic &lt;a href="https://devzone.nordicsemi.com/question/126419/dfu-secure-serial-bootloader-not-working/"&gt;here&lt;/a&gt;, but even after adjusting the application- and bootloader-version to 1 the nRF52832 DK is still stuck in bootloader-mode after a successfull dfu and multiple resets...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>