<?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 can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26393/how-can-i-use-buttonless-dfu-with-nus</link><description>I am using SDK 14.1.0 S132 for PCA0040 board 
 i want to combine the next two examples: 
 examples\ble_peripheral\ble_app_buttonless_dfu 
 and 
 examples\ble_peripheral\ble_app_uart 
 **but I got NO_MEM error after 
 err_code = ble_dfu_buttonless_async_svci_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Mar 2018 08:42:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26393/how-can-i-use-buttonless-dfu-with-nus" /><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/122564?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 08:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79225377-bdc9-498a-9382-ee17c3015862</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/giang"&gt;Giang&lt;/a&gt;: Glad to hear that you successfully merged the two examples. Your question will be assigned to one of our application engineers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/122562?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 08:39:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdd64d41-bb72-4fae-b06b-80a93761836b</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Thank ,&amp;nbsp;I finished it . Can you check out my post :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/31037/tranfer-large-data-from-android-to-nrf52-devkit"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/31037/tranfer-large-data-from-android-to-nrf52-devkit&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thank.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/122559?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 08:35:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c0bb305-8d12-4b2b-907c-2839b08bca5f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/giang"&gt;Giang&lt;/a&gt;: You cannot simply merge the two application hex files. You have to either add the DFU service to the ble_app_uart example or add the Nordic UART service to the ble_app_buttonless_dfu example. I would recommend the first, so start by copying the code from services_init() in the ble_app_buttonless_dfu to the services_init() function in ble_app_uart. Make sure you add the files in the nRF_DFU folder, i.e. ble_dfu.c, ble_dfu_bonded.c and ble_dfu_unbonded.c to the ble_app_uart example. Make sure that you change&amp;nbsp;NRF_SDH_BLE_VS_UUID_COUNT to 2 in sdk_config.h as well as increase the RAM allocated to the SoftDevice.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/121641?ContentTypeID=1</link><pubDate>Thu, 22 Feb 2018 10:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9496aae1-038e-49d4-a339-5945490175f6</guid><dc:creator>Giang</dc:creator><description>&lt;p&gt;Hi biorn-spockeli ,&amp;nbsp;I have the same problem. I tested :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&amp;nbsp;and success . But now , I want to combine&amp;nbsp;&lt;span&gt;ble_app_buttonless_dfu and ble_app_uart . Please show me solution . I have to :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1. Flash project bootloader_secure_ble as bootloader&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Using&amp;nbsp;nrfutil make zip file (application + my private key)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. update zip file via DFU to my KIT via Android&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Or&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Merge bootloader hex + application (buttonless+nus) using nrfutil , but how to use my private key .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please&amp;nbsp;guide me using nrfutil to merge 2 file hex . If I understand wrong , please show me how to fix&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/103858?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 00:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b494e016-1d46-444c-842a-b2baef971f5b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You will also need to create a settings hex using nrfutil and merge it with the bootloader hex so that you start the application, as explained in Appendix 1 of &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;this&lt;/a&gt; blog post&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/103857?ContentTypeID=1</link><pubDate>Sat, 04 Nov 2017 00:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5de45f60-083e-45e1-b5f8-78f70142888a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You need to flash the bootloader to your nrf52832 since nrf_dfu_svci_vector_table_set() which is called by ble_dfu_buttonless_async_svci_init() will check if there is a bootloader present or not. If it does not see the bootloader start address written to UICR, then it will return NRF_ERROR_NO_MEM&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t nrf_dfu_svci_vector_table_set(void)
{
    uint32_t err_code;

    if (NRF_UICR-&amp;gt;NRFFW[0] != 0xFFFFFFFF)
    {
        NRF_LOG_INFO(&amp;quot;Setting vector table to bootloader: 0x%08x&amp;quot;, NRF_UICR-&amp;gt;NRFFW[0]);
        err_code = sd_softdevice_vector_table_base_set(NRF_UICR-&amp;gt;NRFFW[0]);
        if (err_code != NRF_SUCCESS)
        {
            NRF_LOG_ERROR(&amp;quot;Failed running sd_softdevice_vector_table_base_set&amp;quot;);
            return err_code;
        }

        return NRF_SUCCESS;
    }

    NRF_LOG_ERROR(&amp;quot;No bootloader was found&amp;quot;);
    return NRF_ERROR_NO_MEM;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/103855?ContentTypeID=1</link><pubDate>Mon, 30 Oct 2017 00:41:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585706e5-f49d-4352-9d25-b37df816a10f</guid><dc:creator>rc</dc:creator><description>&lt;p&gt;It is the following function&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_dfu_buttonless_async_svci_init();
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use buttonless DFU with NUS</title><link>https://devzone.nordicsemi.com/thread/103856?ContentTypeID=1</link><pubDate>Sun, 29 Oct 2017 16:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a3e94ac-213d-4aaf-a15a-6a09d94ec57c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which function is returning &lt;code&gt;NRF_ERROR_NO_MEM&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>