<?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>chip doesn&amp;#39;t enter in dfu mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66172/chip-doesn-t-enter-in-dfu-mode</link><description>Hello! 
 DFU works correctly. 
 I try to enter chip in dfu mode from application by receiving command from SPI. 
 When command is received: 
 { sd_softdevice_disable(); // Softdevice was disabled before going into reset. Inform bootloader to skip CRC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Sep 2020 09:31:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66172/chip-doesn-t-enter-in-dfu-mode" /><item><title>RE: chip doesn't enter in dfu mode</title><link>https://devzone.nordicsemi.com/thread/270771?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 09:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f974129a-04bf-40c6-8a33-ebf2c333c18f</guid><dc:creator>DmitrySol</dc:creator><description>&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: chip doesn't enter in dfu mode</title><link>https://devzone.nordicsemi.com/thread/270769?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 09:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f647044f-867a-4ff7-b65b-f52fb128a395</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. &amp;quot;nrf_power_gpregret2_set(BOOTLOADER_DFU_SKIP_CRC);&amp;quot; is actually not needed for entering DFU. It&amp;#39;s used to skip CRC boot validation of the app on subsequent boot and is mainly used for enabling faster startup from System OFF mode.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how we have implemented the buttonless mechanism for our BLE service for reference:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t ble_dfu_buttonless_bootloader_start_finalize(void)
{
    uint32_t err_code;

    NRF_LOG_DEBUG(&amp;quot;In ble_dfu_buttonless_bootloader_start_finalize\r\n&amp;quot;);

    err_code = sd_power_gpregret_clr(0, 0xffffffff);
    VERIFY_SUCCESS(err_code);

    err_code = sd_power_gpregret_set(0, BOOTLOADER_DFU_START);
    VERIFY_SUCCESS(err_code);

    // Indicate that the Secure DFU bootloader will be entered
    m_dfu.evt_handler(BLE_DFU_EVT_BOOTLOADER_ENTER);

    // Signal that DFU mode is to be enter to the power management module
    nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_DFU);

    return NRF_SUCCESS;
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: chip doesn't enter in dfu mode</title><link>https://devzone.nordicsemi.com/thread/270767?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 09:19:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a431b19d-2f4c-45e1-b477-0564ab6509f3</guid><dc:creator>DmitrySol</dc:creator><description>&lt;p&gt;It is solved.&lt;/p&gt;
&lt;p&gt;It was needed to write two registers:&lt;br /&gt;nrf_power_gpregret_set(BOOTLOADER_DFU_START);&lt;br /&gt;nrf_power_gpregret2_set(BOOTLOADER_DFU_SKIP_CRC);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it normal to make it not in state observer function (as in the example)?&lt;/p&gt;
&lt;p&gt;just in parsing SPI command function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>