<?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>First Time DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68512/first-time-dfu</link><description>I am adding the secure DFU bootloader examples/dfu/secure_bootloader/pca10056_s140_ble/ to my existing BLE UART peripheral project. I am using SDK 16.0.0 and nrf52840. 
 I used mergehex to merge the bootloader, application and softdevice hex files into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2020 12:28:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68512/first-time-dfu" /><item><title>RE: First Time DFU</title><link>https://devzone.nordicsemi.com/thread/280884?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 12:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb160f3c-c571-43fe-ae71-9117cbb5f103</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;span&gt;I used mergehex to merge the bootloader, application and softdevice hex files into one file, and programmed the chip using the nrf programmer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After programming, I found the chip is staying in the dfu mode and broadcasting as &amp;quot;dfutarg&amp;quot;. I have to upload a zip file to exit the dfu mode.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;That is expected, as you have not flashed a valid bootloader settings page. In that case, the bootloader is not aware that a valid application is present and cannot start it. In order to avoid having to perform a DFU update to get the app running you need to generate the BL settings page as described under &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_settings_generate_display.html"&gt;Generating and displaying bootloader settings&lt;/a&gt;, and flash that together with the app, bootloader and SoftDevice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>