<?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>Infinite Advertisement in ble_app_buttonless_dfu example project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63397/infinite-advertisement-in-ble_app_buttonless_dfu-example-project</link><description>Hi All, 
 To enable infinite advertisement in ble_app_buttonless_dfu example, I di following change 
 #define APP_ADV_DURATION 0 //18000 
 But after this change, the device stopped advertising and every time stuck at NRF_BREAKPOINT_COND. 
 
 
 after analyzing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jul 2020 01:43:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63397/infinite-advertisement-in-ble_app_buttonless_dfu-example-project" /><item><title>RE: Infinite Advertisement in ble_app_buttonless_dfu example project?</title><link>https://devzone.nordicsemi.com/thread/259295?ContentTypeID=1</link><pubDate>Fri, 10 Jul 2020 01:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a81b5de2-d70c-4eab-8708-fcf8d43ff511</guid><dc:creator>pradeep8892</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the update.&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrf SDK&amp;nbsp; 16.0.0&lt;/p&gt;
&lt;p&gt;development kit: - nrf52832&lt;/p&gt;
&lt;p&gt;Embedded Platform: - Segger embedded studio&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So while debugging I was getting NRF_ERROR_NO_MEM error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to define&amp;nbsp;&lt;span&gt;DEBUG in&amp;nbsp; preprocessor defines and get back you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Pradeep&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite Advertisement in ble_app_buttonless_dfu example project?</title><link>https://devzone.nordicsemi.com/thread/258853?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 15:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:770f6e33-07de-42b2-8134-d4f3c925c4fa</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So did you try to define DEBUG in your preprocessor defines? What does the log say then? What SDK version do you use by the way? Is it one of the later SDKs where the log prints the source of the APP_ERROR_CHECK() when you have DEBUG in your preprocessor defines?&lt;/p&gt;
&lt;p&gt;NB:&amp;nbsp;We are really short staffed due to Summer Holidays in Norway. You must expect some extra delay in technical questions these days, I am afraid. I am sorry for the inconvenience.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite Advertisement in ble_app_buttonless_dfu example project?</title><link>https://devzone.nordicsemi.com/thread/258677?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 17:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f20d71f-e035-4bbc-94ae-79a4943c5b5b</guid><dc:creator>pradeep8892</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;So this example is working fine if I set an advert duration 18000 or some other value except 0. So this is not working when I modify&amp;nbsp;&amp;nbsp;&lt;span&gt;APP_ADV_DURATION value with 0. I have already set flag&amp;nbsp;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Infinite Advertisement in ble_app_buttonless_dfu example project?</title><link>https://devzone.nordicsemi.com/thread/258653?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 15:17:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b2b2597-883c-44fb-80b8-d0737fbe7831</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;NB: We are really short staffed due to Summer Holidays in Norway. You must expect some extra delay in technical questions these days, I am afraid. I am sorry for the inconvenience.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hello Pradeep,&lt;/p&gt;
&lt;p&gt;To see what function that triggered the error, please add &amp;quot;DEBUG&amp;quot; to your preprocessor definitions, and the log should print what function that caused the issue.&lt;/p&gt;
&lt;p&gt;What the issue means depends on what function that returned the value.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When you want to set the advertising duration to 0 (infinite), you must also set the flag&lt;/p&gt;
&lt;p&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE&lt;br /&gt;instead of&amp;nbsp;&lt;br /&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE in your main.c file.&lt;/p&gt;
&lt;p&gt;Try this, and see if it helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Another possible issue in that example is that this example requires a bootloader in order to work properly? Is it intentional that you use this example specifically? If not, perhaps you should try another one, such as the ble_app_uart example.&lt;/p&gt;
&lt;p&gt;If you intend to use this example, make sure you compile and flash a bootloader before you flash this example. You also need to generate bootloader settings, program them, and program your ble_app_buttonless project using the generated .hex file, and not the IDE itself. If you want to debug, you must select &amp;quot;attach debugger&amp;quot;, instead of &amp;quot;build and debug&amp;quot;.&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>