<?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>Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40383/tutorial-on-setting-up-the-bootloader-for-nrf52832-in-iar</link><description>Hi. 
 
 I&amp;#39; m using nRF52832, SDK v15.0.0, S132. 
 
 I&amp;#39;m want tutorial how make bootloader DFU in IAR. 
 
 How I make bootloader DFU for nrf52832 in IAR?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 29 Jan 2019 15:55:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40383/tutorial-on-setting-up-the-bootloader-for-nrf52832-in-iar" /><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/168530?ContentTypeID=1</link><pubDate>Tue, 29 Jan 2019 15:55:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a324309e-978e-4410-a525-5cb1cb80b39a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;sd_ble_gap_sec_params_reply will return NRF_ERROR_INVALID_STATE when the security parameters has not been requested. Possible causes are listed &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/3263/sd_ble_gap_sec_params_reply-returns-nrf_error_invalid_state"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166627?ContentTypeID=1</link><pubDate>Sat, 19 Jan 2019 07:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8146365-8f66-41de-8b3e-bfbe6bf03859</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I get error.&lt;/p&gt;
&lt;p&gt;Function&amp;nbsp;sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL) return error 8.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3660.error10.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error11.png" /&gt;&lt;/p&gt;
&lt;p&gt;Help me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166557?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95f90d31-0bd2-4cc6-a1d7-e6b94e45cee1</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;Bootloader installed to flash memory. Why do not start bootloader?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error9.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166549?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b031c123-da4f-45dd-af61-b7cbe3d22ceb</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;YEs, that is the intended behaviour. The chip should perform a SystemReset so that it enter the bootloader, which is always started before the application when it is present on the chip.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166544?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 15:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c3a2bc5-ba73-46aa-8e96-33023041d9d3</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;ble_dfu_buttonless_bootloader_start_finalize -&amp;gt;&amp;nbsp;nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_DFU) -&amp;gt;&amp;nbsp;nrf_pwr_mgmt_shutdown(nrf_pwr_mgmt_shutdown_t shutdown_type) -&amp;gt;&amp;nbsp;shutdown_process(void).&lt;/p&gt;
&lt;p&gt;static void shutdown_process(void)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;execution enters in the block&lt;/p&gt;
&lt;p&gt;if ((m_pwr_mgmt_evt == NRF_PWR_MGMT_EVT_PREPARE_RESET)&lt;br /&gt; || (m_pwr_mgmt_evt == NRF_PWR_MGMT_EVT_PREPARE_DFU))&lt;br /&gt; {&lt;br /&gt; NVIC_SystemReset();&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;And&amp;nbsp;occurs&amp;nbsp;&lt;span&gt;System Reset.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/errors7.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error8.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166529?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 14:50:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a12d25b7-b61e-4325-8d35-34c5d35327c8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Alex, when you report that functions return errors, then you need to provide the error codes so that we can find out what caused the error. Also do you mean a compilation error or a run-time error?&lt;/p&gt;
&lt;p&gt;After calling the&amp;nbsp;ble_dfu_buttonless_bootloader_start_finalize() function the device should jump to the bootloader and the device should start advertising as DfuTarg. You can then connect to the device using nRF Connect for Desktop or Mobile(ios/Android) and then start a DFU by pressing the DFU icon, the blue lock and then select the image you want to upload&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2e432982ed1d4a25af918cb299aad78a/pastedimage1547822988154v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166445?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 11:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d51ba82-e654-4f2f-9c00-49bed4b33a28</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I&amp;nbsp;modify RAM start and RAM STOP in IAR.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error5.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/error6.png" /&gt;&lt;/p&gt;
&lt;p&gt;after started project.&lt;/p&gt;
&lt;p&gt;How do start work DFU? I use function ble_dfu_buttonless_bootloader_start_finalize(); but she not started DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error on&amp;nbsp;line&amp;nbsp;nrf_pwr_mgmt_shutdown(NRF_PWR_MGMT_SHUTDOWN_GOTO_DFU); in function&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;p&gt;I don&amp;#39;t know that do. Help me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166334?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 16:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b8e84f-ccca-42ae-bf11-d2720876cffd</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I get error in function&amp;nbsp;static void ble_stack_init(void).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0724.error2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5086.error3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I changed NRF_SDH_BLE_VS_UUID_COUNT with 1 in 2, but now in function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ret_code_t nrf_sdh_ble_enable(uint32_t * const p_app_ram_start)
{
    // Start of RAM, obtained from linker symbol.
    uint32_t const app_ram_start_link = *p_app_ram_start;

    ret_code_t ret_code = sd_ble_enable(p_app_ram_start);
    if (*p_app_ram_start &amp;gt; app_ram_start_link)
    {
        NRF_LOG_WARNING(&amp;quot;Insufficient RAM allocated for the SoftDevice.&amp;quot;);

        NRF_LOG_WARNING(&amp;quot;Change the RAM start location from 0x%x to 0x%x.&amp;quot;,
                        app_ram_start_link, *p_app_ram_start);
        NRF_LOG_WARNING(&amp;quot;Maximum RAM size for application is 0x%x.&amp;quot;,
                        ram_end_address_get() - (*p_app_ram_start));
    }
    else
    {
        NRF_LOG_DEBUG(&amp;quot;RAM starts at 0x%x&amp;quot;, app_ram_start_link);
        if (*p_app_ram_start != app_ram_start_link)
        {
            NRF_LOG_DEBUG(&amp;quot;RAM start location can be adjusted to 0x%x.&amp;quot;, *p_app_ram_start);

            NRF_LOG_DEBUG(&amp;quot;RAM size for application can be adjusted to 0x%x.&amp;quot;,
                          ram_end_address_get() - (*p_app_ram_start));
        }
    }

    if (ret_code == NRF_SUCCESS)
    {
        m_stack_is_enabled = true;
    }
    else
    {
        NRF_LOG_ERROR(&amp;quot;sd_ble_enable() returned %s.&amp;quot;, nrf_strerror_get(ret_code));
    }

    return ret_code;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the the execution&amp;nbsp;&lt;/span&gt;&lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span&gt;the execution enters in the block&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;NRF_LOG_WARNING(&amp;quot;Insufficient RAM allocated for the SoftDevice.&amp;quot;);&lt;/p&gt;
&lt;p&gt;NRF_LOG_WARNING(&amp;quot;Change the RAM start location from 0x%x to 0x%x.&amp;quot;,&lt;br /&gt; app_ram_start_link, *p_app_ram_start);&lt;br /&gt; NRF_LOG_WARNING(&amp;quot;Maximum RAM size for application is 0x%x.&amp;quot;,&lt;br /&gt; ram_end_address_get() - (*p_app_ram_start));&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166313?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 15:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:970d84f4-e3d3-4cad-8d77-8e19d1594332</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;0x04 means NRF_ERROR_NOMEM, which is generate by&amp;nbsp;&lt;span&gt;sd_ble_uuid_vs_add when there are no more free slots for VS UUIDs,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You need to increase&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h to 1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;* @param[in] p_vs_uuid Pointer to a 16-octet (128-bit) little endian Vendor Specific base UUID disregarding&lt;br /&gt; * bytes 12 and 13.&lt;br /&gt; * @param[out] p_uuid_type Pointer to a uint8_t where the type field in @ref ble_uuid_t corresponding to this UUID will be stored.&lt;br /&gt; *&lt;br /&gt; * @retval ::NRF_SUCCESS Successfully added the Vendor Specific base UUID.&lt;br /&gt; * @retval ::NRF_ERROR_INVALID_ADDR If p_vs_uuid or p_uuid_type is NULL or invalid.&lt;br /&gt; * @retval ::NRF_ERROR_NO_MEM If there are no more free slots for VS UUIDs.&lt;br /&gt; */&lt;br /&gt;SVCALL(SD_BLE_UUID_VS_ADD, uint32_t, sd_ble_uuid_vs_add(ble_uuid128_t const *p_vs_uuid, uint8_t *p_uuid_type));&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166310?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 15:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd49dc1f-666d-4a3a-b8bd-a9c8ee133794</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;&lt;span&gt;Returns the error code function&amp;nbsp;err_code = sd_ble_uuid_vs_add(&amp;amp;nordic_base_uuid, &amp;amp;m_dfu.uuid_type);&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    err_code = sd_ble_uuid_vs_add(&amp;amp;nordic_base_uuid, &amp;amp;m_dfu.uuid_type);
    VERIFY_SUCCESS(err_code);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4721.error.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166159?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 08:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bdf0098-c43d-4358-aa05-6c41f08052ef</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which error code is returned by ble_dfu_buttonless_init()? Can you step into&amp;nbsp;&lt;span&gt;ble_dfu_buttonless_init and see which internal function that returns the error code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166066?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60c54140-63f9-4937-8b55-fa29dd2276f8</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I got an error again.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4237.error.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What do I do wrong?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bootloader uploaded&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2161.error2.png" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/166062?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 16:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553e1892-c43c-4333-97e1-87bd9da00ce4</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You call the following function&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;p&gt;its defined in ble_dfu.c and its called in so just include ble_dfu.h in the file, I assume main.c, and then call&amp;nbsp;ble_dfu_buttonless_bootloader_start_finalize when you want to jump to the bootloader.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165994?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f3400a9-173a-493c-bb7a-e46edea4d323</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;&lt;span class="" id="result_box" lang="en"&gt;&lt;span&gt;I solved the compilation problems.&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;I changed the function &amp;quot;services_init(void)&amp;quot; of project ble_app_uart in:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void services_init(void)
{
    uint32_t           err_code;
    ble_nus_init_t     nus_init;
    nrf_ble_qwr_init_t qwr_init = {0};
    ble_dfu_buttonless_init_t dfus_init = {0};

    // Initialize Queued Write Module.
    qwr_init.error_handler = nrf_qwr_error_handler;

    err_code = nrf_ble_qwr_init(&amp;amp;m_qwr, &amp;amp;qwr_init);
    APP_ERROR_CHECK(err_code);

    // Initialize NUS.
    memset(&amp;amp;nus_init, 0, sizeof(nus_init));

    nus_init.data_handler = nus_data_handler;

    err_code = ble_nus_init(&amp;amp;m_nus, &amp;amp;nus_init);
    APP_ERROR_CHECK(err_code);
    
    //***** buttonless DFU *****

    // Initialize the async SVCI interface to bootloader.
    err_code = ble_dfu_buttonless_async_svci_init();
    APP_ERROR_CHECK(err_code);

    dfus_init.evt_handler = ble_dfu_evt_handler;

    err_code = ble_dfu_buttonless_init(&amp;amp;dfus_init);
    APP_ERROR_CHECK(err_code);

   //**************************
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and add&amp;nbsp;peer_manager_init&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    bool erase_bonds;
    
  //  static uint32_t pages_to_erase = 1;
    
    // Initialize.
    log_init();
    timers_init();
    buttons_leds_init(&amp;amp;erase_bonds);
    power_management_init();
    ble_stack_init();
    peer_manager_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();

    // Start execution.
    
    advertising_start(erase_bonds);&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I want start buttonless DFU with command. I get command through ble uart.&amp;nbsp; How do I may it make?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165990?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 13:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c5d68c1-f89c-4730-aa00-a4b0a64bb168</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Just use the second one, i.e.&amp;nbsp;advertising_start(bool erase_bonds), with erase_bonds = false.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165929?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 11:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc226a3f-9412-4bf6-82dc-0b9e0b8196cd</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;In project ble_app_uart function advertising_start have the form&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_start(void)
{
    uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In project ble_app_buttonless_dfu function advertising_start have the form&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void advertising_start(bool erase_bonds)
{
    if (erase_bonds == true)
    {
        delete_bonds();
        // Advertising is started by PM_EVT_PEERS_DELETE_SUCCEEDED event.
    }
    else
    {
        uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);
        APP_ERROR_CHECK(err_code);

        NRF_LOG_DEBUG(&amp;quot;advertising is started&amp;quot;);
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2514.error1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3515.error2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Which do one to use function advertising_start ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165915?ContentTypeID=1</link><pubDate>Wed, 16 Jan 2019 10:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1d64b68-b5b3-4355-8f81-d70c8d397b8a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;No, unfortunately we do not have such a guide.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest that you compare the project settings of your ble_app_uart project IAR project with the settings of the ble_app_buttonless_dfu IAR project. You will then see which .c files that are nescessary , which paths to .h files that must be added to the include&amp;nbsp;directories path and which Preprocessor definitions that are needed.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165627?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 05:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5920639-35df-428d-8530-1e5e350e198e</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I build project.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IAR-.png" /&gt;&lt;/p&gt;
&lt;p&gt;I added peer_id.c, peer_data_storage.c, peer_database.c, peer_manager.c, pm_buffer.c, pm_mutex.c, security_dispatcher.c, security_manager.c, gatt_cache_manager.c, gatts_cache_manager.c,id_manager.c&amp;nbsp;include in sdk_config.h CRC16_EABLE, FDS_ENABLE,&amp;nbsp;&lt;span&gt;NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS,&amp;nbsp;&amp;nbsp;NRF_SDH_BLE_SERVICE_CHANGED and&amp;nbsp;BLE_DFU_ENABLED and added&amp;nbsp;BL_SETTINGS_ACCESS_ONLY, NRF_DFU_SVCI_ENABLED&lt;br /&gt;NRF_DFU_TRANSPORT_BLE=1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is a guide or an application note that explains the several steps needed to integrate buttonless DFU to a custom application?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;What do I must make for full&amp;nbsp;completions buttonless DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165608?ContentTypeID=1</link><pubDate>Tue, 15 Jan 2019 00:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d13183-5ab8-41fb-9fb7-4ebe3c24f282</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I add file&amp;nbsp;&lt;span&gt;\libraries\bootloader\dfu&amp;nbsp;figure&amp;nbsp;IAR error_1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IAR-error_5F00_1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I include in main.c&amp;nbsp;following libraries:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include &amp;quot;nrf_dfu_ble_svci_bond_sharing.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_svci_async_function.h&amp;quot;&lt;br /&gt;#include &amp;quot;nrf_svci_async_handler.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IAR-error-library.png" /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;figure&amp;nbsp;library&amp;nbsp;nrf_dfu_ble_svci_bond_sharing.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3731.IAR-error_5F00_2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;figure&amp;nbsp;library&amp;nbsp;nrf_svci_async_function.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5707.IAR-error_5F00_3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Errors&amp;nbsp;remained.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165567?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 16:22:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4343da9f-bb49-4e43-8202-2d16d33ea1b9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;nrf_dfu_peer_data_t is defined in nrf_dfu_types.h - Make sure that you have added this in the include path in IAR ( the file is located in&amp;nbsp;components\libraries\bootloader\dfu)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;nrf_dfu_set_peer_data_svci_async_t is defined when NRF_SVCI_ASYNC_FUNC_DECLARE(NRF_DFU_SVCI_SET_PEER_DATA, nrf_dfu_set_peer_data, nrf_dfu_peer_data_t, nrf_dfu_peer_data_state_t); is called nrf_dfu_ble_svci_bond_sharing.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_SVCI_ASYNC_FUNC_DECLARE(svci_num,                                           \
                                    name,                                               \
                                    param_type,                                         \
                                    state_type)                                         \
/*lint --e{19} */                                                                       \
NRF_SVCI_ACYNC_FUNC_TYPEDEF(name, param_type, state_type);                              \
NRF_SVCI_ASYNC_EVENT_FUNC_TYPEDEF(name, state_type);                                    \
                                                                                        \
typedef struct                                                                          \
{                                                                                       \
    name ## _async_fn_t     async_func;                                                 \
    name ## _event_fn_t     sys_evt_handler;                                            \
    state_type              state;                                                      \
} name ## _svci_async_t;
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165559?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 16:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a73aae8-a553-4365-b4a5-41600f0372ae</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;Thanks bjorn-spockeli.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I get new problem. I mayn&amp;#39;t build progect in IAR. Progect&amp;nbsp;&amp;nbsp;&lt;span&gt;Buttonless DFU.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get errors:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Error[Pe020]: identifier &amp;quot;nrf_dfu_set_peer_data_svci_async_t&amp;quot; is undefined&amp;nbsp;&lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_dfu_set_peer_data_svci_async_t&amp;quot; is undefined&amp;nbsp;&lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_dfu_set_peer_data_svci_async_t&amp;quot; is undefined 3 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_dfu_peer_data_t&amp;quot; is undefined&amp;nbsp;&lt;br /&gt;Error[Pe020]: identifier &amp;quot;nrf_dfu_peer_data_t&amp;quot; is undefined&amp;nbsp;&lt;br /&gt;Error[Pe020]: identifier &amp;quot;SYSTEM_SERVICE_ATT_SIZE&amp;quot; is undefined&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0714.IAR_5F00_error_5F00_1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/8030.IAR-error_5F00_2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4760.IAR-error_5F00_3.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/165556?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 15:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ae84d79-b20b-45c2-878c-65e22382af15</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If you flash SoftDevice, Bootloader and the Buttonless DFU application, then the device should start in DFU mode. If you want the device to run the application, then you need to generate a bootloader settings page and flash that along with the SD,BL and App.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil#generate-2"&gt;https://github.com/NordicSemiconductor/pc-nrfutil#generate-2&lt;/a&gt;&amp;nbsp;on how to generate the settings hex file.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/163806?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 15:15:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5122d64c-3a36-4de7-bfc9-2bb76f747d5d</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I did the secure bootloader DFU. I attained step 8 in document.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I instal softdevice and secure bootloader to flash nRF52832. After make the ble_app_buttonless_dfu start download and debug but program not start.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5270.1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If install only softdevice and buttonless dfu then&amp;nbsp;I got error &amp;quot;No bootloader was found&amp;quot;.&lt;/p&gt;
&lt;p&gt;If install softdevice and bootloader after buttonless dfu then I got not start programs.&lt;/p&gt;
&lt;p&gt;Although security bootloader work. &lt;br /&gt;The verification was performed in the following steps:&lt;/p&gt;
&lt;p&gt;E1. Generate new firmware.&lt;/p&gt;
&lt;p&gt;E2. Generate new DFU .zip package.&lt;/p&gt;
&lt;p&gt;E3. Switch the device to DFU mode, do DFU update and verify new image is running.&lt;/p&gt;
&lt;p&gt;Help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/163504?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 15:18:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae7942c9-a0bd-448c-8296-d49edd5e9b6c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;YEs, so its ble_dfu_buttonless_async_svci_init that returns a non-zero error code. This is usually due to the bootloader not being flashed to the nRF52. Compile the bootloader example and flash it to the nRF52 in addition to the buttonless dfu example and the S132 softDevice. See the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/ble_sdk_app_dfu_bootloader"&gt;documentation &lt;/a&gt;on the bootloader example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tutorial on setting up the bootloader for nrf52832 in IAR</title><link>https://devzone.nordicsemi.com/thread/163390?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 10:18:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c99002b5-88e1-4f3d-985d-3c4853deb59b</guid><dc:creator>Alex_Golubev</dc:creator><description>&lt;p&gt;I look call stack.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I got error&amp;nbsp;when function call&amp;nbsp;APP_ERROR_CHECK(err_code);.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/30755.2.png" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3060.3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>