<?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>Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12567/migration-from-sdk-11-alpha-to-11-final-advertising-problem</link><description>Hello, 
 This morning i did migration of my code from SDK 11 alpha 2 to 11 final on nRF52 and i have a big problem. 
 Nor bootloader or application do advertising. Am I alone ? 
 (i possibly not checked bootloader in 11 alpha but it worked with SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jun 2016 19:28:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12567/migration-from-sdk-11-alpha-to-11-final-advertising-problem" /><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47722?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2016 19:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95bdc5e0-511a-46bb-86bc-2751b95bcb15</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Have you checked the return code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47721?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 13:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eab9934-a91e-4a58-9e0d-58243ab09148</guid><dc:creator>kevray</dc:creator><description>&lt;p&gt;Have not. Only moved it. Calling TIMER2 (systick_init) prior to ble_init() or calling systick_init() immediately after ble_init() and there is no BLE Advertising. Removing the call to systick_init() or adding a delay of 50ms following ble_init() and BLE Advertising works, a connection can be made, and then disconnect occurs within 3 seconds.&lt;/p&gt;
&lt;p&gt;This is code that has worked flawlessly for several months. Only started getting wonky with the update from SDK9 -&amp;gt; SDK11 and s130 v2.0.1. No hardware change. nRF51822 xxAC with LFCLKSRC = RC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47720?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2016 08:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7324dc9b-37f5-4cd2-bfe5-6e357fc69d0d</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello Kevray, did you fixed it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47719?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2016 11:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:143ab4d4-a33a-4c53-bcff-7f242b48a296</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Hello, i fixed it but i don&amp;#39;t remember exactly how (too much things since). Can you check the return code value for ble_advertising_start ? If i am right it was returning NRF_ERROR_INVALID_STATE if called too soon, i had to retry later until it was ok.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47718?ContentTypeID=1</link><pubDate>Wed, 22 Jun 2016 11:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48d1a39-7967-4799-b040-0c125e2d5e84</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I don&amp;#39;t think so. What version of the chip are you using? Check the markings on the chip with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51422_ic_revision_overview.html?cp=3_0_0"&gt;this&lt;/a&gt; or &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html?cp=3_0_1"&gt;this&lt;/a&gt; table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47717?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2016 19:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7312ea34-5bfb-435e-b686-86d842753dcb</guid><dc:creator>kevray</dc:creator><description>&lt;p&gt;Was a solution to this ever found? We&amp;#39;re experiencing the same issue after upgrading to SDK11.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47727?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2016 00:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:666a8ffe-fbef-4c41-a1ea-b8363e050b2f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I usually use C++ and if you turn warnings up you get a useful warning about uninitialised struct members and I turned on the equivalent for C too, not that I remember what it is. It&amp;#39;s a bit annoying sometimes but can be rather useful. I would think however that field is ignored totally in the RC case. I don&amp;#39;t really understand where your problem likely lies, the bootloader isn&amp;#39;t special, it&amp;#39;s just another BLE service which runs out of a different piece of flash, if BLE works in general on that device with the S132 softdevice, there&amp;#39;s no particular reason the bootloader wouldn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;You could try sticking a breakpoint in the softdevice fault handler, see if it&amp;#39;s going there (as opposed to the usual error handler) although I&amp;#39;d think you&amp;#39;d notice.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47726?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 17:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d570b558-3580-4352-abe1-77c245386014</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;i have not set   .xtal_accuracy = 0 in structure for RC, i will test&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47725?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 17:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5aa3739-ba25-4c92-83ac-5a94a0869e99</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;static  nrf_clock_lf_cfg_t CLOCK_CFG =&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    {
        .source = NRF_CLOCK_LF_SRC_SYNTH
        .xtal_accuracy = xx // what tu use here as xx
    };
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47724?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 15:06:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ccf5aaa-992b-433d-b01a-ab81587ce001</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Do you mean that or do you mean does NRF_CLOCK_LF_SRC_RC need parameters? You say it works with SYNTH but not LF&lt;/p&gt;
&lt;p&gt;here&amp;#39;s min&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static 	nrf_clock_lf_cfg_t CLOCK_CFG = 
{
    .source = NRF_CLOCK_LF_SRC_RC
    .rc_ctiv = 4,      // Check temperature every 4 * 250ms
    .rc_temp_ctiv = 0, // Always calibrate
    .xtal_accuracy = 0
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;that works fine for me under SD132v2 and SD130v2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47723?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 13:56:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1272c85-2d21-42e8-8e61-c88e094cd04d</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;I found.&lt;/p&gt;
&lt;p&gt;Very strange but HF Crystal don&amp;#39;t start with 11 final.&lt;/p&gt;
&lt;p&gt;If i use NRF_CLOCK_LF_SRC_SYNTH in place of NRF_CLOCK_LF_SRC_RC, it works !!!&lt;/p&gt;
&lt;p&gt;Question does NRF_CLOCK_LF_SRC_SYNTH need parameters (PPM ?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47716?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 09:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68a67eff-4ba8-423a-9aca-33e555c99d1c</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;for APP, on_adv_evt is just called once then nothing&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47715?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 08:45:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b17e124-4366-4547-81bd-c0af26f92fe2</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;i did tome history digging and tests about if advertising is operational.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;                             BL             APP
SDK 9, nRF51                 OK             OK
SDK 11 alpha 2, nRF52        OK             KO
SDK 11 final, nRF52          KO             KO
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47714?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 08:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c69e4ef-2dce-476e-a9f0-4450345e3e9b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;its&amp;#39; the LF RC clock I&amp;#39;m using - I don&amp;#39;t have a crystal on this board&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47713?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 08:27:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65bb9900-3a16-4577-a74d-22901c5f938a</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;and yes, SD is programmed (i checked if file is the good one and i use verify after programming).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47712?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2016 08:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d911bab-969c-4302-889c-322e1ed853ab</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;@RK could you try with RC LF clock please ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source        =  NRF_CLOCK_LF_SRC_RC,            \
                                 .rc_ctiv       = 4,                                \
                                .rc_temp_ctiv  = 1,                            \
                                 }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47710?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 14:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:481ca432-cdab-45ba-bb4b-03317cf7bba9</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Mine works fine. I recompiled for 11 final when it came out, removed all the bits of code I&amp;#39;d ported whilst waiting to migrate to SD 132V2 and reverted to the ones in the final SDK release which are now updated, worked first time. S130 worked on my nRF51s as well. Sure you have the release softdevice programmed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47709?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:50:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138959c9-7153-480d-a48a-8d809eecec5c</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Ok but before could you just test if bootloader is advertising on an nRF52 rev C. (i have few modifications in bootloader and it works with 11 alpha but not with 11 final)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47708?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a88c1ee1-1607-4f78-8cac-e83219a5b754</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you create a new support case in myPage from &lt;a href="https://www.nordicsemi.com"&gt;https://www.nordicsemi.com&lt;/a&gt;, upload your code there, and refer to this thread? By doing so, I will be able to test your code without sharing it here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47707?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:43:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:201bd492-658d-42a9-a099-af5dd59544c6</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;that&amp;#39;s for application (bootloader don&amp;#39;t use ble_advertising.c)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47706?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:42:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88825387-1148-4f6d-b6ab-e6a99bafad53</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;ble_advertising_init =&amp;gt; OK
ble_advertising_start =&amp;gt; NRF_SUCCESS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47705?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:41:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c0566cf-1d3b-4c57-a3eb-55b1c5499cca</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;And advertising_start(..) doesn&amp;#39;t return any error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47711?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6370eec6-5061-4061-967c-ea15ec632151</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Yes i can, i did it and no found fail...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47704?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2793ad46-2162-48b5-b98e-bb3ec7551102</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you run the chip in debug mode and check where in the code it fails?&lt;/p&gt;
&lt;p&gt;It can also be useful to take a look at the migration document that comes with the S130 v. 2.0.0 softdevice. It describes migration from S130 v.1.0.0, but it may still be worth taking a look.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Migration from SDK 11 alpha to 11 final, advertising problem</title><link>https://devzone.nordicsemi.com/thread/47703?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2016 13:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd2eb0e5-543e-45c4-8dfd-9924dd6205eb</guid><dc:creator>Fabien Comte</dc:creator><description>&lt;p&gt;Confirmed bootloader works with 11 alpha. Detail i run with NRF_CLOCK_LF_SRC_RC. And power consumption is divided by 2.5 Under bootloader with 11 final.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>