<?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>BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52584/ble-beacon-with-dfu-not-advertising</link><description>Hi, 
 I am trying to add DFU service in ble_beacon example. I am using SDK14 and softdevice is S132_5.0.0 for 52-dk. 
 I have merged dfu example with ble_beacon and initiate only beacon advertising portion in main function, but after uploading softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2019 09:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52584/ble-beacon-with-dfu-not-advertising" /><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212503?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 09:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:104a8b4d-aed3-4fe8-8181-c8793818588f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;What main.c file? The one you originally uploaded?&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;dfu Beacon function not working&amp;quot;? What do you expect it to do, and what does it actually do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212435?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 05:36:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dca5a40e-387b-43aa-93d7-139ea4088602</guid><dc:creator>Tejas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your guidance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212294?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 13:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1945f1e1-b093-4d5f-a150-ef96330783ee</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Please do not (!) mix the two projects for bootloader and application together.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Search for nrf_dfu_button_enter_check() in your bootloader project. If This button is pushed when the bootloader is started. You need to set BOOTLOADER_BUTTON to match your button.&lt;/p&gt;
&lt;p&gt;You need to decide how you want your application to reset (to start the bootloader). You want the sequence to be like this:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Application normally running --&amp;gt; some user interface cause the application to call a reset --&amp;gt; bootloader start up --&amp;gt; button is held, putting the device in DFU mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My suggestion is that when the button is pressed, it will reset the device, and then, since the button is held down, it will enter DFU mode.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212242?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 10:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0f364a-88f8-4941-ab61-bd0d0ecaba3c</guid><dc:creator>Tejas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Information provided by you is helpful to me.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;Yes, I have a button on nrf beacon which I have to use to enter DFU mode. How can I do this? Actually my main.c file working well when I use only DFU mode.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212058?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 12:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e970abd4-f95b-4ebe-a2a1-e44472d39c45</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Oh, I thought you meant that you merged the hex files, but you actually merged the functions that is called in main.c. That will not work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This part in the middle of your main() function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Enter main loop.
    for (;; )
    {
        if (NRF_LOG_PROCESS() == false)
        {
            power_manage();
        }
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;is called your main loop. This means that it will never go past this, so it will never reach anything below these lines, such as ret_val = nrf_bootloader_init();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Either way, that is not how the bootloader works. The bootloader is a separate project with a separate hex file that runs whenever you turn on your device. The reason it will not work to comment out either the bootloader part or the beacon part is that the project settings are different in the two projects. The bootloader is designed to be in the end of the flash area, and the beacon is designed to be right after the softdevice. You can find some information about this here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_bootloader.html&amp;amp;cp=5_1_3_5_0_7&amp;amp;anchor=lib_bootloader_memory"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_bootloader.html&amp;amp;cp=5_1_3_5_0_7&amp;amp;anchor=lib_bootloader_memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Typically, you have something in your application that says that &amp;quot;now I want to go into DFU mode&amp;quot;. When this happens it will set some registers, and reset. After the reset it will start up the bootloader, and see that these registers are set, and then run into DFU mode. If these registers are not set, it will check that it has a valid application, and then run that application. I don&amp;#39;t think you should try to challenge this structure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you need to decide is how you want your application to enter DFU mode. A beacon is typically non-connectable, so you can&amp;#39;t use BLE to tell it to enter DFU mode (there is no way to send BLE data to the beacon. It can only broadcast). Do you have a button that you can use to enter DFU mode?&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><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/212010?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 09:49:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:651cddb3-5cee-4611-b8f4-51f5dbea0719</guid><dc:creator>Tejas</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I have already gone through DFU getting atarted guide and it&amp;#39;s working fine. Now I want to add dfu service with ble_beacon example. I have merged beacon and dfu code in main.c file. Now in main function I have only initialize ble_beacon and commented all the dfu function. but Device is not not emitting beacon signal after compiling and uploading code. Kindly check my main.c file. In-short I want to make main.c file in which if I comment out ble_beacon functions in main() then it will work like a dfu example and If I comment out dfu functions in main() then it will work like a ble_beacon example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Beacon with DFU not advertising</title><link>https://devzone.nordicsemi.com/thread/211990?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 08:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c2c498f-9fe3-40f2-a594-ab794cc2cb2a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So your device is not advertising after you flash the bootloader and the application?&lt;/p&gt;
&lt;p&gt;Are you sure it doesn&amp;#39;t advertise as DfuTarg? If you have a bootloader, if your application is not transferred over DFU, or if you flash bootloader settings generated with the correct application, then the bootloader will reject the application, and start advertising &amp;quot;DfuTarg&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you have not seen it already, I recommend that you read through the &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader" rel="noopener noreferrer" target="_blank"&gt;DFU getting started guide&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>