<?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>Entering Serial DFU mode from the application layer in nrf52840 dk board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81659/entering-serial-dfu-mode-from-the-application-layer-in-nrf52840-dk-board</link><description>Hi All, 
 I am trying to implement UART SERIAL Bootloader for my device and I just need to perform DFU using uart serial without pressing BUTTON 1 and RESET buttons in nrf52840 dk board 
 My query is Without pressing BUTTON_1 and Power RESET how to enter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Nov 2021 13:22:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81659/entering-serial-dfu-mode-from-the-application-layer-in-nrf52840-dk-board" /><item><title>RE: Entering Serial DFU mode from the application layer in nrf52840 dk board</title><link>https://devzone.nordicsemi.com/thread/338801?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 13:22:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90de8684-ec96-470e-a1f0-492e5a225407</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can enable &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#ga4e1297da5d25948277b4323a6fb87659"&gt;NRF_BL_DFU_ENTER_METHOD_GPREGRET&lt;/a&gt;&lt;span&gt;&amp;nbsp;in the sdk_config.h, and&amp;nbsp;&lt;/span&gt;write the s&lt;span&gt;pecial value in the retention register GPREGRET register&amp;nbsp;a flag (BOOTLOADER_DFU_START = 0xB1) &lt;/span&gt;&lt;span&gt;&amp;nbsp;in the application and then do a soft reset (NVIC_SystemReset) to switch.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Since the retention register keeps its value after the reset, the bootloader will check this value when it boots up after the reset and then can enter DFU mode instead of starting the normal application. This is the same as when we hold the Bootloader button and trigger a reset.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering Serial DFU mode from the application layer in nrf52840 dk board</title><link>https://devzone.nordicsemi.com/thread/338733?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 09:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f7df5b0-41ec-49df-a1e7-167c821cc5f9</guid><dc:creator>Gireesha</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am able to successfully put the device into bootloader mode by pressing the button 1 and reset button and we are able to perform DFU.&lt;/p&gt;
&lt;p&gt;But, now in our custom device (nrf52840) doesn&amp;#39;t have any button (reset / button). How do we implement this DFU method for our custom board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;means how to enter DFU mode from application witout using any buttons.&lt;/p&gt;
&lt;p&gt;~Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Entering Serial DFU mode from the application layer in nrf52840 dk board</title><link>https://devzone.nordicsemi.com/thread/338725?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 09:44:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e74230f6-8f10-4a02-8567-7eb41cd2ad5f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the DFU mode, the bootloader activates the DFU transports and the device is ready to receive new firmware. The bootloader enters the DFU mode on the following conditions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;No valid application is present.&lt;/li&gt;
&lt;li&gt;SoftDevice is activated and a valid application is present. In that case, the bootloader expects that an application update can be requested by the host.&lt;/li&gt;
&lt;li&gt;Entering DFU mode is triggered by one of the optional sources:
&lt;ul&gt;
&lt;li&gt;Button (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#ga2a0043889d40d5b09e524cc701f93fbf"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTON&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Pin reset (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#gaa89bea64482f2c4d83919922e5e84bc3"&gt;NRF_BL_DFU_ENTER_METHOD_PINRESET&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Special value in GPREGRET register (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#ga4e1297da5d25948277b4323a6fb87659"&gt;NRF_BL_DFU_ENTER_METHOD_GPREGRET&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;Request from the application written to the settings page (&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__bootloader__config.html#gab540083b75cd50e020bbd166198476c4"&gt;NRF_BL_DFU_ENTER_METHOD_BUTTONLESS&lt;/a&gt;).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;See&amp;nbsp;&lt;a title="DFU mode" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=8_1_3_5_0_2#lib_bootloader_dfu_mode"&gt;DFU mode&lt;/a&gt;&amp;nbsp;doc.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>