<?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>Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21428/help-with-restarting-debugging-and-size-limitations-for-dfu-procedure-needed</link><description>Hello, 
 while I already managed to solve a couple of problems regarding a proper handling of the DFU procedure in my previous topic here , there are still 3 problems that remain where I could use some help... 
 
 
 How can I trigger a &amp;#39;hard-reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Apr 2017 14:39:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21428/help-with-restarting-debugging-and-size-limitations-for-dfu-procedure-needed" /><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84062?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 14:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f1a64d0-96ed-461d-ad7f-a2d886b2c4bd</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;Apparently that solved the issue for both Q1 and Q3 - wasnt able to reproduce the &amp;quot;non-reset&amp;quot;-behaviour again even for the nRF52832-DK!&lt;/p&gt;
&lt;p&gt;Just to be sure I would want to leave the topic still open for 1 more week or so, in order to run more tests - but looks good atm! Thanks again for your support :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84061?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 14:36:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca821f1a-22c4-4d93-9345-753cc9b09b35</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; Yes you are correct, I am observing this behaviour only after doing an OTA-DFU for the application. Thought I described that above, but I might have gotten a bit lost while providing this many informations!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; Oh ok - thanks for that advice! Will try that asap... :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84060?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 14:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fe2d60d-9385-4d88-85d4-6fa97b91d819</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; Sorry, I though you meant flashing the SoftDevice and bootloader and application test hex files. If you reset after that you will stay in bootloader mode. You are referring to the reset after an application OTA DFU has been performed right?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; I think I spotted the error: You are creating a bootloader image using the merged bootloader+settings file, created using the following command&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mergehex -m secure_dfu.hex secure_dfu_settings.hex -o secure_dfu_merged.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The settings file should only be merged with the bootloader hex when you&amp;#39;re flashing the SoftDevice, Bootloader and the application using a programmer. The settings file must be omitted when you create OTA DFU images.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84068?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 13:58:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29c8aa0a-de7c-4026-89bd-736cb00347f4</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; I dont realy get that, since the test-files show your described behaviour only with the nRF52832-DK, but work directly out-of-the-box for the custom-board. Same goes for the bootloader_secure- and buttonless_dfu-files! After running quite a number of additional tests, I do sometimes get the expected reset even on the nRF52832-DK - but its not only in 2-5% of all attempts and not being reproducable. Is there any error in the executed prodecure, which I posted above? Do the bootloader-settings need to be merged in more then 1 file?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; Ok that sounds like a good idea - I will try that for sure!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; Hmmmm... you happen to have any other idea then, why I am facing the &amp;quot;UNKNOWN (8202)&amp;quot;-error? Is it maybe a masked &amp;quot;REMOTE DFU DATA SIZE EXCEEDS LIMIT&amp;quot;-error instead due to not using the correct memory-layouting and address ranges?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84067?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 13:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3312f46-183a-4ee9-b53e-d5514e479944</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; The bootloader test image has not been merged with any settings file generated by nrfutil and the dfu_test_app_hrm_s132.hef file. Thus, the correct behavior is that the device should stay in bootloader mode even though the application has been flashed to the device. You should see the same behavior with a custom device.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; The production bootloader example does not have the logging source files included and there is not enough space in the allocated flash section to fit the logging functionality. I recommend using the debug version, i.e. examples\dfu\bootloader_secure_ble\pca10040_debug, instead as logging is enabled by default.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; Not really, the address space of the nRF52 is huge, from 0x0000 to above 0x40002000. The bootloader example writes for instance to the UICR registers starting from 0x10001000. The area in between is filled with zeroes, a lot of zeros.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84066?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 11:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c19652a-407a-4130-8e7d-ff6584015ce3</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; Absolutely correct - normal (expected) reset behaviour on the custom board, but not on the nRF52832-DK!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; Yes I tried with NRF_LOG_ENABLED but then I get the following error-message &amp;quot;region `FLASH&amp;#39; overflowed by 4508 bytes&amp;quot;, which is why I was hoping to get that tutorial working for my gcc-toolchain. Didnt know where to start though and what files needed to be adjusted!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; But isnt 262 MB not a bit suspicious? I included all my files in the zip-archives that are attached in my answer above, so that those can be rechecked. I would assume that there is some issue regarding the proper settings in the loader file, that I might have overlooked!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84065?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 08:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cba37a5-0348-40f5-bda4-4ad9b21bb636</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt;&lt;code&gt;Just connected and flashed my custom-board through the nRF52832-DK, where both generated&lt;/code&gt; &lt;code&gt;application-files from &amp;#39;Q1: (P1)&amp;#39; and &amp;#39;Q1: (P2)&amp;#39; worked directly with the proper reset-behaviour!&lt;/code&gt; &lt;code&gt;So my guess now would be, that for some reason the nRF52832-DK isnt always handling the reset accordingly&lt;/code&gt; &lt;code&gt;when it is programmed directly instead of being bridged for flashing a custom board!&lt;/code&gt; &lt;code&gt;The same problem occurs with the 2nd nRF52832-DK that I got - can you confirm a similar behaviour!?&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;So flashing you custom boards with the nRF52-DK resulted in the reset-behavior, i.e. the device branches to the application. If you flash the nRF52 DK with the same firmware, you do not see the correct behavior, i.e. it stays in bootloader mode?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; Is NRF_LOG_ENABLED set to 1 in sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; The hexfiles are in the intelhex format so they will be considerably smaller than the bin file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84064?ContentTypeID=1</link><pubDate>Thu, 20 Apr 2017 13:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d57e48-eb09-463f-a2d7-beaf04c5652a</guid><dc:creator>Ray Breslin</dc:creator><description>&lt;p&gt;Thank you for your response!&lt;/p&gt;
&lt;p&gt;Here are some new observations/thoughts on Q1-Q3...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q1: (P1)&lt;/strong&gt; Tried to understand the procedure regarding that bootloader-flag while testing with the sample-files from the dfu_send_hex-example, but unfortunately this is resulting in exactly the same behaviour as I stated in my previous topic &lt;a href="https://devzone.nordicsemi.com/question/128141/problem-with-bootloader-mode-after-dfu-procedure/"&gt;here&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_files_5F00_sdk_5F00_test_5F00_v12.2.0.zip"&gt;dfu_files_sdk_test_v12.2.0.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For a better understanding I documented all the steps that I took along the way:&lt;/p&gt;
&lt;p&gt;a. Preparations for nRF52832-DK:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Connected to USB (COM3)
- Cleaned complete chip-content with &amp;#39;nrfjprog --recover -f nrf52&amp;#39;
-&amp;gt; Output:
    Recovering device. This operation might take 30s.
    Erasing user code and UICR flash areas.
- Cleared pin-states with &amp;#39;nrfjprog --pinreset -f nrf52&amp;#39;
-&amp;gt; Output:
    Applying pin reset.
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: FFFFFFFF                              |....|
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;b. Preparations for Smartphone:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Re-Activated BT-Adapter on Galaxy S7
- Removed nRF-Toolbox-app from task-manager
- Transferred &amp;#39;dfu_test_app_hrm_s132.zip&amp;#39;-file to &amp;#39;Download&amp;#39;-folder on sd-card
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;c. DFU-Procedure (used cmd-line in &amp;#39;examples\dfu\ble_dfu_send_hex\test_images_update_nrf52&amp;#39;-folder)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Flashed bootloader+softdevice with &amp;#39;nrfjprog --reset --program dfu_test_softdevice_bootloader_s132.hex --family NRF52 --chiperase&amp;#39;
-&amp;gt; Output:
    Parsing hex file.
    Erasing code and UICR flash areas.
    Applying system reset.
    Checking that the area to write is not protected.
    Programing device.
    Applying system reset.
    Run.
-&amp;gt; nRF52832-DK: both LED1+LED3 are &amp;#39;on&amp;#39;
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: 00000000                              |....|
- Started nRF-Toolbox-app and selected DFU-icon
- Selected &amp;#39;dfu_test_app_hrm_s132.zip&amp;#39;-package in &amp;#39;Download&amp;#39;-folder on sd-card
-&amp;gt; Status: OK (32440 Bytes)
- Selected device &amp;#39;DfuTest&amp;#39;
- Started upload
-&amp;gt; nRF52832-DK: LED1 goes &amp;#39;off&amp;#39; and LED2 goes &amp;#39;on&amp;#39; during connection
- Upload completed
-&amp;gt; Status: Application has been transferred successfully
-&amp;gt; nRF52832-DK: Restart upon disconnecting, resulting in both LED1+LED3 being &amp;#39;on&amp;#39;
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: 00000001                              |....|
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;There was no change in the behaviour when repeating the dfu-procedure with the &amp;#39;dfu_test_app_hrm_s132.zip&amp;#39;- or &amp;#39;dfu_test_softdevice_bootloader_s132.zip&amp;#39;-file - I am always stuck in the bootloader-mode even though the flag is set correctly and I am just using official test-files!&lt;/p&gt;
&lt;p&gt;So either my hardware is having a problem or there is an error already within those test-files, that is causing a &amp;#39;fake-check&amp;#39; of that flag...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[Edit:] Just connected and flashed my custom-board through the nRF52832-DK, where both generated application-files from &amp;#39;Q1: (P1)&amp;#39; and &amp;#39;Q1: (P2)&amp;#39; worked directly with the proper reset-behaviour! So my guess now would be, that for some reason the nRF52832-DK isnt always handling the reset accordingly when it is programmed directly instead of being bridged for flashing a custom board! The same problem occurs with the 2nd nRF52832-DK that I got - can you confirm a similar behaviour!?&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q1: (P2)&lt;/strong&gt; In addition to the tests in (P1) I also tried using the combination of bootloader_secure- and buttonless_dfu-example.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_files_5F00_sdk_5F00_v12.2.0.zip"&gt;dfu_files_sdk_v12.2.0.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For a better understanding I also documented the taken steps...:&lt;/p&gt;
&lt;p&gt;a. Preparations for nRF52832-DK:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;similar to (P1) above!
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;b. Preparations for DFU-packages:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Created new private key with &amp;#39;nrfutil keys generate dfu_private.pem&amp;#39;
-&amp;gt; Output: 
    Generated private key and stored it in: dfu_private.pem
- Converted private key to public key with &amp;#39;nrfutil keys display --key pk --format code dfu_private.pem --out_file dfu_public_key.c&amp;#39;
-&amp;gt; Output: 
    n.a.
- Compiled bootloader_secure-example &amp;#39;secure_dfu.hex&amp;#39;
- Compiled buttonless_dfu-example &amp;#39;buttonless_dfu.hex&amp;#39;
- Created new bootloader-settings &amp;#39;secure_dfu_settings.hex&amp;#39; with &amp;#39;nrfutil settings generate --family NRF52 --application buttonless_dfu.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 secure_dfu_settings.hex&amp;#39;
-&amp;gt; Output:
    Generated Bootloader DFU settings .hex file and stored it in: secure_dfu_settings.hex

    Bootloader DFU Settings:
    * File:                 secure_dfu_settings.hex
    * Family:               nRF52
    * CRC:                  0xC359D59D
    * Settings Version:     0x00000001 (1)
    * App Version:          0x00000001 (1)
    * Bootloader Version:   0x00000001 (1)
    * Bank Layout:          0x00000000
    * Current Bank:         0x00000000
    * Application Size:     0x0000D4A0 (54432 bytes)
    * Application CRC:      0x5C42E354
    * Bank0 Bank Code:      0x00000001
- Merged bootloader-settings and bootloader with &amp;#39;mergehex -m secure_dfu.hex secure_dfu_settings.hex -o secure_dfu_merged.hex&amp;#39;
-&amp;gt; Output:
    Parsing input hex files.
    Merging files.
    Storing merged file.
- Created new distribution-package for bootloader+softdevice with &amp;#39;nrfutil pkg generate --bootloader secure_dfu_merged.hex --bootloader-version 1 --softdevice s132_nrf52_3.0.0_softdevice.hex --key-file dfu_private.pem --hw-version 52 --sd-req 0x8C dfu_softdevice_bootloader_s132_1.zip&amp;#39;
-&amp;gt; Output:
    Zip created at dfu_softdevice_bootloader_s132_1.zip
- Created new distribution-package for application with &amp;#39;nrfutil pkg generate --application buttonless_dfu.hex --application-version 1 --key-file dfu_private.pem --hw-version 52 --sd-req 0x8C dfu_app_buttonless_s132_2.zip&amp;#39;
-&amp;gt; Output:
    Zip created at dfu_app_buttonless_s132_2.zip
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;c. Preparations for Smartphone:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Re-Activated BT-Adapter on Galaxy S7
- Removed nRF-Toolbox-app from task-manager
- Transferred &amp;#39;dfu_app_buttonless_s132_2&amp;#39;-file to &amp;#39;Download&amp;#39;-folder on sd-card
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;d. DFU-Procedure (used cmd-line in &amp;#39;examples\dfu\bootloader_secure&amp;#39;-folder)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;- Flashed softdevice with &amp;#39;nrfjprog --reset --program s132_nrf52_3.0.0_softdevice.hex --family NRF52 --chiperase&amp;#39;
-&amp;gt; Output:
    Parsing hex file.
    Erasing code and UICR flash areas.
    Applying system reset.
    Checking that the area to write is not protected.
    Programing device.
    Applying system reset.
    Run.
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: FFFFFFFF                              |....|
- Flashed bootloader with &amp;#39;nrfjprog --reset --program secure_dfu_merged.hex --family NRF52 --sectorerase&amp;#39;
-&amp;gt; Output:
    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.
    Erasing page at address 0x7F000.
    WARNING: A UICR write operation has been requested but UICR has not been
    WARNING: erased. Please verify that the result is correct.
    Applying system reset.
    Checking that the area to write is not protected.
    Programing device.
    Applying system reset.
    Run.
-&amp;gt; nRF52832-DK: both LED1+LED3 are &amp;#39;on&amp;#39;
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: 00000001                              |....|
- Started nRF-Toolbox-app and selected DFU-icon
- Selected &amp;#39;dfu_app_buttonless_s132_2.zip&amp;#39;-package in &amp;#39;Download&amp;#39;-folder on sd-card
-&amp;gt; Status: OK (55075 Bytes)
- Selected device &amp;#39;DfuTarg&amp;#39;
- Started upload
-&amp;gt; nRF52832-DK: LED1 goes &amp;#39;off&amp;#39; and LED2 goes &amp;#39;on&amp;#39; during connection
- Upload completed
-&amp;gt; Status: Application has been transferred successfully
-&amp;gt; nRF52832-DK: Restart upon disconnecting, resulting in both LED1+LED3 being &amp;#39;on&amp;#39;
- Checked bootloader-flag for application with &amp;#39;nrfjprog --memrd 0x7F020 -f nrf52&amp;#39;
-&amp;gt; Output:
    0x0007F020: 00000001                              |....|
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cant say why the bootloader-flag is already set after flashing the &amp;#39;secure_dfu_merged.hex&amp;#39;-file, but I am sure there is an explanation for it.&lt;/p&gt;
&lt;p&gt;When repeating the dfu-procedure with the &amp;#39;dfu_app_buttonless_s132_2.zip&amp;#39;-file there was no change in the behavior, but while using the &amp;#39;dfu_softdevice_bootloader_s132_1.zip&amp;#39;-file the dfu-procedure aborted with the message &amp;#39;UNKNOWN (8202)&amp;#39; - maybe due to a problem related to Q3!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; The idea with the Segger&amp;#39;s Ozone Debugger is nice and I will make sure to check that out, but before that I was hoping to simply find a way to enable the NRF_LOG-messages within my gcc-toolchain!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; There definitely might be an issue with the executed procedure, since I can always observe that the created bin-file from my bootloader_secure-example is about 262 MB, while the hex- and zip-file are just 59 KB and 147 KB respectively (including the softdevice).&lt;/p&gt;
&lt;p&gt;Listed the entire dfu-procedure above under &amp;#39;Q1: (P2)&amp;#39; - also included all of my generated files in the attached zip-archive!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help with restarting, debugging and size-limitations for DFU procedure needed</title><link>https://devzone.nordicsemi.com/thread/84063?ContentTypeID=1</link><pubDate>Wed, 19 Apr 2017 09:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cb460d7-9488-4726-95af-184ad5cfe413</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Ray,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q1:&lt;/strong&gt; The Secure bootloader should jump to the application after the DFU procedure has been completed. Upon completion the bootloader will set the valid application flag in the bootloader settings and jump to the application. This valid application flag is checked by the bootloader everytime the device is booted up. If you&amp;#39;ve put the device in bootloader mode, but do not start any DFU process then you will stay in bootloader mode until the device is reset, unless you implement a timeout.&lt;/p&gt;
&lt;p&gt;I saw that you&amp;#39;ve implemented this using the WDT as I suggested in &lt;a href="https://devzone.nordicsemi.com/question/103394/s130-dfu-ble-bootloader-no-timeout/"&gt;this&lt;/a&gt; answer. If the valid application flag is set in the bootloader settings, then a Soft-reset should result in the bootloader jumping to the application. You can check if the flag is set by reading
the bootloader settings from flash using the following command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -f nrf52 --memrd 0x7F020
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;which should be set to 1, i.e. the command should return&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;0x0007F020: 00000001     
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Q2:&lt;/strong&gt; I recommend using Segger&amp;#39;s Ozone Debugger, &lt;a href="https://www.segger.com/ozone.html"&gt;here&lt;/a&gt; is the link to the download page. You need to copy the .out file from the _build folder to the same folder that contains the Makefile. Ozone should then be able to locate all the source files based on the paths in the Makefile.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q3:&lt;/strong&gt; It could be an issue with the bootloader size. Can you post the nrfutil command that you used to generate the zip file ? Please also attach the generated zip file as well as the bootloader and softdevice hex files used to generate the image?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>