<?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>Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37473/advertising-does-not-start-with-s140-6-1-0-same-hex-run-without-issue-with-s140-6-0-0</link><description>Hi, 
 I am working for Adafruit on the bootloader for the upcoming feather nRF52840. Currently testing using the nrf52840DK pc10056. Everything is OK with S140 6.0.0 . Today I tried to upgrade the SD to 6.1.0 but the BLE won&amp;#39;t star t ( advertising cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Aug 2018 06:25:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37473/advertising-does-not-start-with-s140-6-1-0-same-hex-run-without-issue-with-s140-6-0-0" /><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/145209?ContentTypeID=1</link><pubDate>Wed, 22 Aug 2018 06:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbda600a-c377-444f-b659-ba83d61872b2</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;superb !!! It works now, I did miss out the migration note. Thank you very much for troubleshoot this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/145157?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 14:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810dba81-8a03-4856-908c-ab57729519c3</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It turns out, starting from SoftDevice versions 6.0.0, the GAP advertising data buffers (ble_gap_adv_data_t structures) must be kept alive for the full duration of advertising with that data. See the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.0.0%2Fstructble__gap__adv__data__t.html"&gt;ble_gap_adv_data_t Struct Reference&lt;/a&gt; for details.&lt;/p&gt;
&lt;p&gt;For your minimal example, this means in advertising_start() adv_buf and gap_adv needs to live longer than the scope of advertising_start(). For that example, declaring both of these static solves the issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void advertising_start(void)
{
  uint8_t _adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;

  static uint8_t adv_buf[BLE_GAP_ADV_SET_DATA_SIZE_MAX];
  static ble_gap_adv_data_t gap_adv =
  {
      .adv_data = { .p_data = adv_buf, .len = 0 }
  };

// (...)

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The lifetime requirement for ble_gap_adv_data_t is also stated in the s140 v6.0.0 migration guide.&lt;/p&gt;
&lt;p&gt;Admittedly, there should have been a note in the documentation for &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga9969047f4e7485c3f856c841978cc31a"&gt;sd_ble_gap_adv_set_configure()&lt;/a&gt; as well, stating there are lifetime requirements for the data pointed to by the p_adv_data parameter and referring to the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v6.0.0%2Fstructble__gap__adv__data__t.html"&gt;ble_gap_adv_data_t documentation&lt;/a&gt; for details. Currently the requirements are not mentioned in the context where it is most important for developers to know about them. I consider this to be a documentation bug, and the SoftDevice team is notified of this documentation bug.&lt;/p&gt;
&lt;p&gt;The reason why your application did work with s140 v6.0.0, is that although those lifetime requirements follows from the intended implementation within the SoftDevices, they are not needed with the actual implementation for versions 6.0.0. For SoftDevice versions 6.1.0, however, they are. (Failing to meet the lifetime requirements leads to undefined behavior.)&lt;/p&gt;
&lt;p&gt;We still consider versions 6.0.0 and 6.1.0 compatible, provided that you follow the API documentation thoroughly.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144987?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 16:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0c570cb-b424-46fb-9adc-69dcf9a26d8a</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;great, hopefully we will have 6.1.1 soon :D&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144934?ContentTypeID=1</link><pubDate>Mon, 20 Aug 2018 12:09:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:963e1ba3-6477-4242-a5b8-85e57d454872</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any solution yet, but the SoftDevice team has reproduced the issue within their setup and they are now looking into possible causes/workarounds/fixes. I would expect this to take a couple more days.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144761?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 15:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69f4ef9e-d9f9-433a-a18b-eac73fbde034</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;Great, I am looking forward to the fix &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f603.svg" title="Smiley"&gt;&amp;#x1f603;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144760?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 15:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1745a29f-948d-4665-832d-3c7592dd3ec1</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the clarification.&lt;/p&gt;
&lt;p&gt;I can confirm the behavior, and the SoftDevice team is looking into the issue. Unfortunately we have not figured out what causes this yet, but we will continue investigating after the weekend. I will keep you updated.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144592?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 16:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38503ca2-6cee-45d3-876d-8099a1c99cdb</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;Thank you for looking into the issue, I am just using nrfconnect app on android &amp;amp; iOS. Both cannot detect advertising with the minimal code above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144572?ContentTypeID=1</link><pubDate>Thu, 16 Aug 2018 14:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4a6ef4e-fc5c-4b6e-903e-8841dd5035ac</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the updates, and for the example for reproducing.&lt;/p&gt;
&lt;p&gt;I have been using nRF Connect for desktop for testing. Have you done the same?&lt;/p&gt;
&lt;p&gt;It turns out there are compatibility issues between the current release of nRF Connect for desktop and s140 v6.1.0, due to a known bug/limitation with the SoftDevice used for the connectivity firmware (s132 v3.0.1). The behavior that I see, both when testing SDK examples and when using the minimal example that you provided, seems to be consistent with what to expect given this compatibility issue. We are working on a fix for nRF Connect and the connectivity firmware.&lt;/p&gt;
&lt;p&gt;Do you see similar issues when using other tools for connecting to your device, such as nRF Connect for mobile?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144387?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 20:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08ad6260-1a2a-472f-be4f-912adcc12a27</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;I update the 1st post with a very minimal code that could reproduce the issue. The code does nothing but advertise as &amp;quot;AdaDFU&amp;quot; and blinky an LED1. Advertising can be seen when flashed with S140 v6.0.0 but nothing show up with S140 6.1.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144375?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 15:58:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:758edbe0-9112-4115-a349-8ffe77f559ec</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;mine is production version v1.0.0. Thanks for looking at this, we are hoping to release the board with latest SD to save the hassle to upgrade bootloader later for user :D&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/20180815_5F00_225519.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144370?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 15:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b628c828-9f5d-40b9-8c9f-43a3bc70426d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked with the ble_app_hrs example from SDK 15.0.0, for the pca10056, first with the s140 v6.0.0, and then replaced it with s140 v6.1.0. While it does advertise and I and connect to it, I do experience some problems (it abruptly disconnects.) This was with pca10056 v0.12.0. I will investigate further, also with your firmware.&lt;/p&gt;
&lt;p&gt;What are the markings on your pca10056?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144286?ContentTypeID=1</link><pubDate>Wed, 15 Aug 2018 09:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e4da5b3-3704-4a61-9aad-3a7f70d77264</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;All the SD call return success including the sd_ble_gap_adv_start()&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c#L708"&gt;https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/master/lib/sdk11/components/libraries/bootloader_dfu/dfu_transport_ble.c#L708&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hmm strange&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144225?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 16:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ac7221d-c64f-441a-ae51-1b8a20b833bf</guid><dc:creator>hathach</dc:creator><description>&lt;p&gt;I recompile but it couldn&amp;#39;t run. And S140 6.1.0 release note did say it is binary compatible without the need to recompile&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1534262583880v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not start with S140 6.1.0, same hex run without issue with S140 6.0.0</title><link>https://devzone.nordicsemi.com/thread/144214?ContentTypeID=1</link><pubDate>Tue, 14 Aug 2018 14:20:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0a478f3-a7f8-42af-9b9e-c862b4d59c17</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;NRF SDK version numbers in a nutshell:&lt;/p&gt;
&lt;p&gt;S140 X.Y.Z&lt;/p&gt;
&lt;p&gt;Changing Z is a bugfix and existing hex is supposed to work.&lt;/p&gt;
&lt;p&gt;Changing Y is a small change and you need to re-compile the source code with updated headers.&lt;/p&gt;
&lt;p&gt;Changing X is a big API change and will highly likely require significant changes in the source code.&lt;/p&gt;
&lt;p&gt;In OP case there is a Y change. Make sure your SDK is updated with the 6.1.0 headers, and then compile the source code.&lt;/p&gt;
&lt;p&gt;TL;DR&lt;br /&gt;You need to re-compile the code with the correct header files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>