<?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>How to switch to bootloader dfu mode when the program run in an app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74592/how-to-switch-to-bootloader-dfu-mode-when-the-program-run-in-an-app</link><description>Hi guys: 
 a. I use a uart dfu bootloader(loacation: SDK-location\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10056_uart) in 52840 soc. 
 b.I flashed the bootloader and SoftDevice by nrfjprog firstly.(cmd: nrfjprog</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Apr 2021 12:38:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74592/how-to-switch-to-bootloader-dfu-mode-when-the-program-run-in-an-app" /><item><title>RE: How to switch to bootloader dfu mode when the program run in an app?</title><link>https://devzone.nordicsemi.com/thread/307486?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 12:38:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8217a3b8-69c3-4299-a6e6-485e76baa6b1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To enter DFU mode from the app you need to ensure that the sdk_config.h of the bootloader has&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_GPREGRET set to 1. The, just write a magic word () to the retention register and reset, as described in &lt;a href="https://devzone.nordicsemi.com/support-private/support/267856#permalink=651850"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>