<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/74465/usb-dfu-combined-with-buttonless-ble-dfu</link><description>Hi 
 
 I am working with nRF52840 DK v2.0.1, in SDK 17.0.2., trying to implement combined BLE+USB DFU in my application. 
 First I tried combining bootloaders from SDK (secure_bootloader/pca10056_s140_ble and secure_bootloader/pca10056_usb), and I used</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 28 Feb 2022 22:12:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/74465/usb-dfu-combined-with-buttonless-ble-dfu" /><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/355385?ContentTypeID=1</link><pubDate>Mon, 28 Feb 2022 22:12:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ece0c1a-c07c-4e54-89c2-5c752eff14b9</guid><dc:creator>user78927</dc:creator><description>&lt;p&gt;and just to be clear the answer to this problem is to move your files around so USB related DFU files (nrf_dfu_serial.c and nrf_dfu_serial_usb.c) before the ble dfu files (nrf_dfu_ble.c)&amp;nbsp; Took me hours to track down what in the world was going on.&amp;nbsp; Since this is actual problem I would definitely recommend that Nordic update the transport init to be in the required order if more than one is present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307811?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 20:05:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b6655f8-8c3f-4523-8ade-28d70cf4a563</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I can&amp;#39;t do that right now. Here are the key steps that you need to take:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Build your main application&lt;/li&gt;
&lt;li&gt;Build the bootloader&lt;/li&gt;
&lt;li&gt;Copy the bootloader hex and the main application hex and put them in the same folder&lt;/li&gt;
&lt;li&gt;Use the nrfutil to create settings file (as shown in the example below)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil settings generate --family NRF52840 --application ble_app_cli_pca10056_s140.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 bl_setting.hex
&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the mergehex to combine settings, bootloader, application and the softdevice (it must be done in 2 steps as shown in the example following)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex --merge bl_setting.hex secure_bootloader_usb_mbr_pca10056.hex s140_softdevice.hex --output bl_set_s140.hex
mergehex --merge bl_set_s140.hex ble_app_cli_pca10056_s140.hex --output bl_set_s140_app.hex
&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the nRF Connect programmer to flash the device with bl_set_s140_app.hex file (your app should be working now on the device, and the next step is to perform DFU)&lt;/li&gt;
&lt;li&gt;Make needed changes in your main app and perform build. Use the new resulting application hex file to create .zip package with the following command:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --application ble_app_cli_pca10056_s140.hex --application-version-string &amp;quot;2.0.0&amp;quot; --hw-version 52 --sd-req 0xCA --key-file C:\Users\Em\Downloads\Milestone-1\DFU-test\private.key app_v2.zip&lt;/pre&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the .zip package to perform the DFU&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;(Example commands that I have provided is used for applications that are based on s140 SD)&lt;/p&gt;
&lt;p&gt;This all I can help you with. If this doesn&amp;#39;t work for you, you have failed to install required software and libraries, go through the installation process again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307808?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 19:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7363ce2f-f622-4816-83c9-72293c1b4976</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;can you take acess of my pc and help it is much needed as i am struck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307807?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 19:03:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cdf874f-f10e-42ac-8c7d-a9384c37e97e</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;i am following tutorial upto page 18. in that merging is not required&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307806?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 18:48:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e22b17-8a3b-409e-8482-6a7b3fb88e23</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;This is where you merge bootloader settings hex, softdevice hex, bootloader hex and the application hex file.. This needs to be done, to be able to flash the bootloader, softdevice and the application at the same time(in one hex file) . That&amp;#39;s why I&amp;#39;m telling you to follow the tutorial that I have sent you.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307805?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 17:43:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14e5dd66-6849-49ae-a085-7ca7cbb2c9db</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;this part i havent done what is this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307801?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 17:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacc7e52-1240-46e0-9875-209a28fe08f7</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Also, did you use correct SD when performing the mergehex?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex --merge bl_setting.hex secure_bootloader_usb_mbr_pca10056.hex s140_softdevice.hex --output bl_set_s140.hex&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307800?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 16:43:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3d7b486-c221-43d2-a657-33fd955a5a02</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;nrfutil pkg generate --application nrf52840_xxaa.hex --application-version-string &amp;quot;1.2.3&amp;quot; --hw-version 52 --sd-req 0xCA --key-file private_key.pem app_v1.zip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307799?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 16:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7579232-bd1e-4f8d-a54f-5b81c00ee5ad</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Since it says &amp;quot;SD_VERSION_FAILURE&amp;quot; in the picture you sent me, I&amp;#39;m assuming it has something to do with the .zip package you made, and the SD version you selected there.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is what I use to make DFU package for s140 SD, on my nRF52840&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --application ble_app_cli_pca10056_s140.hex --application-version-string &amp;quot;2.0.0&amp;quot; --hw-version 52 --sd-req 0xCA --key-file C:\Users\Em\Downloads\Milestone-1\DFU-test\private.key app_v2.zip
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;--sd-req 0xCA, this is where you difine SD version I hink, for the s132 you need to select --sd-req 0xCB, but you can check that inside the s132 documentation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you please share the &amp;quot;nrfutil pkg generate&amp;quot; command that you were using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307797?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 16:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06dfac24-6f58-4b0a-accd-28d004734ff6</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;Sdk 17&lt;/p&gt;
&lt;p&gt;S140/#sl32&lt;/p&gt;
&lt;p&gt;Nrf52840/52832&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307796?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 16:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e091f60c-ed06-478e-a753-e15e14e06b8b</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Could you tell me the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which SDK version are you using?&lt;/li&gt;
&lt;li&gt;What DevKit are you working on?&lt;/li&gt;
&lt;li&gt;Which Softdevice are you using?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307786?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 12:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d49135bb-f232-4d43-9d83-77d420fa91d2</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;actually i have followed the tutorial but at last stage this issue is coming pls help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307785?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 12:45:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4506d9e-be15-463c-89e3-18f78075ba0b</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5102.Capture.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307784?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 12:37:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02eb2be0-1f44-4141-8e74-186f99139cae</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;I&amp;#39;d say, focus on the pdf tutorial I&amp;#39;ve sent you, it has everything you need&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307783?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 12:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cccee26b-5646-4196-8afa-f844b58bb871</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;i am able to run secure bootloader and ble uart app example but when generate zip file an error comes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307782?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 12:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49068dca-d7ed-4e6d-b9f6-f3aaddf8f81b</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;&lt;img src="https://test-devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/12076.Capture.PNG" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307780?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 06:46:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9c6c24-2eb2-4874-9276-bca3d5fef2c8</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;This is not realated to the problem I&amp;#39;m having.&lt;/p&gt;
&lt;p&gt;But try following this tutorial: &lt;a href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwiEsaDFsqrwAhVpgv0HHYNhBUAQFjAAegQIBBAD&amp;amp;url=https%3A%2F%2Fwww.u-blox.com%2Fzh%2Ffiles%2Fadd-nordic-semiconductor-dfu-sdk-example&amp;amp;usg=AOvVaw0F1DTUvnkQJkzf6uwCH63O"&gt;https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwiEsaDFsqrwAhVpgv0HHYNhBUAQFjAAegQIBBAD&amp;amp;url=https%3A%2F%2Fwww.u-blox.com%2Fzh%2Ffiles%2Fadd-nordic-semiconductor-dfu-sdk-example&amp;amp;usg=AOvVaw0F1DTUvnkQJkzf6uwCH63O&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, from my experience, you need to install python v2.7.16 and GCC 7-2018-g2-win32, otherwise bootloader making process won&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307777?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 06:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddfcffce-3386-402e-8703-fed72e1e213f</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;Hello, i am trying to generate public keys for DFU mode but this error is coming. please help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307776?ContentTypeID=1</link><pubDate>Sun, 02 May 2021 06:39:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31ce3403-2005-41b4-996c-ffe5c5faa469</guid><dc:creator>user99300</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://test-devzone.nordicsemi.com/resized-image/__size/1040x10000/__key/communityserver-discussions-components-files/4/w.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307258?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 12:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828dcfd2-50eb-4c0d-b7da-732e2b7b5df1</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;I&amp;#39;m beginning to think this is due to order of transport initialization. Program initializes BLE transport first. Is there any elegant way to force initialize USB transport first?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307253?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 12:20:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83d601b2-9395-4e72-b5c5-18e265b2908e</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Another update:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added this part of the code to the bootloader&amp;#39;s main.c (line 2 and line 3):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; NRF_LOG_INFO(&amp;quot;Inside main&amp;quot;);
    nrf_drv_clock_init();
    nrf_drv_power_init(NULL);
    ret_val = nrf_bootloader_init(dfu_observer);
    APP_ERROR_CHECK(ret_val);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;BLE transport gets initialized, but the USB transport won&amp;#39;t initialize now, with the following log in terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Inside main
&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Using settings page.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Copying forbidden parts from backup page.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.
&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Destination settings are identical to source, write not needed. Skipping.
&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate
&amp;lt;info&amp;gt; app: No firmware to activate.
&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.
&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.
&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;debug&amp;gt; app: timer_stop (0x2000599C)
&amp;lt;debug&amp;gt; app: timer_activate (0x2000599C)
&amp;lt;info&amp;gt; app: Entering DFU mode.
&amp;lt;debug&amp;gt; app: Initializing transports (found: 2)
&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport
&amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x000E0000
&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.
&amp;lt;debug&amp;gt; nrf_dfu_ble: Configuring BLE stack.
&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling the BLE stack.
&amp;lt;debug&amp;gt; nrf_dfu_ble: No advertising name found
&amp;lt;debug&amp;gt; nrf_dfu_ble: Using default advertising name
&amp;lt;debug&amp;gt; nrf_dfu_ble: Advertising...
&amp;lt;debug&amp;gt; nrf_dfu_ble: BLE DFU transport initialized.
&amp;lt;debug&amp;gt; nrf_dfu_serial_usb: Initializing drivers.
&amp;lt;debug&amp;gt; app: Failed to initialize transport 1, error 133
&amp;lt;error&amp;gt; app: Could not initalize DFU transport: 0x00000085
&amp;lt;error&amp;gt; app: C:\SDKs\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\main.c:150&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307199?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 10:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8215322-5ed5-42b9-9419-71ae14f29fc4</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Another update:&lt;/p&gt;
&lt;p&gt;I tried the same approach in&amp;nbsp;&lt;span&gt;secure_bootloader/pca10056_s140_ble_debug and&amp;nbsp;secure_bootloader/pca10056_s140_usb_debug examples, to see what is really going on. Here is the log in terminal:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Inside main
&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Calling nrf_dfu_settings_init()...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;warning&amp;gt; nrf_dfu_settings: Resetting bootloader settings since neither the settings page nor the backup are valid (CRC error).
&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x000FF000
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x000FF000, len=1 pages), queue usage: 0
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x000FF000, pending 0
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x000FF000, src=0x2000A730, len=896 bytes), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x000FF000, pending 0
&amp;lt;info&amp;gt; nrf_dfu_settings: Backing up settings page to address 0xFE000.
&amp;lt;debug&amp;gt; nrf_dfu_settings: Writing settings...
&amp;lt;debug&amp;gt; nrf_dfu_settings: Erasing old settings at: 0x000FE000
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_erase(addr=0x0x000FE000, len=1 pages), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash erase success: addr=0x000FE000, pending 0
&amp;lt;debug&amp;gt; nrf_dfu_flash: nrf_fstorage_write(addr=0x000FE000, src=0x2000AAB0, len=896 bytes), queue usage: 1
&amp;lt;debug&amp;gt; nrf_dfu_flash: Flash write success: addr=0x000FE000, pending 0
&amp;lt;debug&amp;gt; app: Enter nrf_bootloader_fw_activate
&amp;lt;info&amp;gt; app: No firmware to activate.
&amp;lt;info&amp;gt; app: Boot validation failed. No valid app to boot.
&amp;lt;debug&amp;gt; app: DFU mode because app is not valid.
&amp;lt;info&amp;gt; nrf_bootloader_wdt: WDT is not enabled
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;debug&amp;gt; app: timer_stop (0x2000599C)
&amp;lt;debug&amp;gt; app: timer_activate (0x2000599C)
&amp;lt;info&amp;gt; app: Entering DFU mode.
&amp;lt;debug&amp;gt; app: Initializing transports (found: 2)
&amp;lt;debug&amp;gt; nrf_dfu_ble: Initializing BLE DFU transport
&amp;lt;debug&amp;gt; nrf_dfu_ble: Setting up vector table: 0x000E0000
&amp;lt;debug&amp;gt; nrf_dfu_ble: Enabling SoftDevice.
&amp;lt;error&amp;gt; app: Received a fault! id: 0x00004002, pc: 0x00000000, info: 0x2003FF30&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Seams like the Softdevice is not being enabled. I don&amp;#39;t know what is the problem, though.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB DFU combined with Buttonless BLE DFU</title><link>https://test-devzone.nordicsemi.com/thread/307136?ContentTypeID=1</link><pubDate>Wed, 28 Apr 2021 06:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf364d30-ab58-4ec0-9f23-7a2169d09374</guid><dc:creator>user91630</dc:creator><description>&lt;p&gt;Update:&lt;br /&gt;I was able to solve the problem regarding the USB DFU. Turns out, the project I was working on was modified in the past, and it was broken. I used clean SDK USB bootloader example, along with some logic in my main app to trigger USB DFU, write to GPREGRET and perform system restart, after which I&amp;#39;m able to perform USB DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After I successfully implemented USB DFU I tried combining BLE and USB bootloaders.&lt;/p&gt;
&lt;p&gt;As I said, I&amp;#39;m using BLE bootloader as a starting point, and I&amp;#39;m including files from the USB bootloader example, along with sdk_config.h defines. (I couldn&amp;#39;t include following files: nrf_soc.c and nrf_nvic.c along with include path /components/drivers/nrf/nrf_soc_nosd. Also I had to set the following config in sdk_config.h:&lt;/p&gt;
&lt;p&gt;NRF_DRV_PROTOCOL_REDUCED 0 )&lt;/p&gt;
&lt;p&gt;I modified Section placement macros to: FLASH_START = 0xf0000 and FLASH_SIZE = 0xf000 and I was able to build the solution..&lt;/p&gt;
&lt;p&gt;Everything else is the same as in the&amp;nbsp;&lt;span&gt;secure_bootloader/pca10056_s140_ble example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I merge bootloader, settings file, softdevice and the app .hex files and when I flash the merged file onto the nRF52840 application starts as it should, everything works fine. However I can&amp;#39;t enter DFU mode from the bootloader, I&amp;#39;ve tried entering through: &lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;BLE DFU via nRF Connect mobile app&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;USB DFU via nrfutil in terminal&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Also I&amp;#39;ve tried pressing BUTTON4 while performing reset (BUTTON entry method is enabled in the bootloader and the BUTTON4 is selected), but it won&amp;#39;t enter DFU mode, it goes straight to the application. (If I&amp;#39;m holding the reset button with Button4 LED0 and LED1 are blinking as long as I keep holding the buttons)&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Also, I&amp;#39;ve tried with clean BLE bootloader from SDK, and BLE DFU works fine (even with&amp;nbsp;NRF_DRV_PROTOCOL_REDUCED&amp;nbsp;set to 0)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you please guide me on how to combine these bootloaders?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>