<?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>Bootloader resets after switching to DFU</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71172/bootloader-resets-after-switching-to-dfu</link><description>Hi, 
 I have a huge issue with NRF52832 and DFU on custom board. I have a custom characteristic in my application to switch to DFU after proper PIN typing. Then I call this function: 
 
 After that device resets to bootloader and there is such a code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Feb 2021 15:11:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71172/bootloader-resets-after-switching-to-dfu" /><item><title>RE: Bootloader resets after switching to DFU</title><link>https://devzone.nordicsemi.com/thread/292526?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 15:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d1918a3-aa37-4285-ae10-80b05b35792c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what SDK you are using, but have you tried to run the debug bootloader project? In SDK17.0.2 that would be:&lt;/p&gt;
&lt;p&gt;SDK\examples\dfu\secure_bootloader\pca10040_s132_ble_debug\&amp;lt;your IDE&amp;gt;&lt;/p&gt;
&lt;p&gt;Does the log say anything?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If not, try adding the this to the log, after nrf_dfu_req_handler_init(dfu_observer);&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    ret_val = nrf_dfu_req_handler_init(dfu_observer);
    NRF_LOG_INFO(&amp;quot;nrf_dfu_req_handler_init() returned %02x&amp;quot;, ret_val);
    &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What does it return? Are you able to debug and figure out&amp;nbsp;where inside&amp;nbsp;nrf_dfu_req_handler_init() this is returned?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>