<?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>[SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28493/sdk-switching-our-project-from-sdk12-2-to-sdk14-0</link><description>Hello Nordic team, 
 I just post a message here to take the temperature, and your respective engineering opinions about that… 
 It&amp;#39;s been a few months that I work on the development of our IOT and we have therefore chosen, and been well advised, for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Dec 2017 11:53:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28493/sdk-switching-our-project-from-sdk12-2-to-sdk14-0" /><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112731?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 11:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51422c7f-6f34-4ef3-990f-02286d37b466</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Great to hear! Thanks for updating this case! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112730?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2017 09:57:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10d47df7-15bb-477a-b9cd-c9fbbe71909b</guid><dc:creator>trdop</dc:creator><description>&lt;p&gt;On this issue, the Nordic engineer recommended and informed me that: &lt;em&gt;The bootloader does not use the nrf_sdh_ble_default_cfg_set() function while enabling the stack, so the sdk_config configuration is not applied, and the softdevice seems to enable SC by default.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;so for those who have this issue, add the following else statement in ble_stack_init [ nRF5_SDK_14.2.0_17b948a/components/libraries/bootloader/nrf_ble_dfu.c ] :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if defined(NRF_DFU_BLE_REQUIRES_BONDS) &amp;amp;&amp;amp; (NRF_DFU_BLE_REQUIRES_BONDS == 1)
    NRF_LOG_DEBUG(&amp;quot;Running Service Changed config&amp;quot;);
    ble_gatts_cfg_service_changed.gatts_cfg.service_changed.service_changed = 1;
    err_code = sd_ble_cfg_set(BLE_GATTS_CFG_SERVICE_CHANGED, &amp;amp;ble_gatts_cfg_service_changed, ram_start);
    VERIFY_SUCCESS(err_code);
    NRF_LOG_DEBUG(&amp;quot;Finished running Service Changed config&amp;quot;);
#else
    NRF_LOG_DEBUG(&amp;quot;Running Service Changed config&amp;quot;);
    ble_gatts_cfg_service_changed.gatts_cfg.service_changed.service_changed = 0;
    err_code = sd_ble_cfg_set(BLE_GATTS_CFG_SERVICE_CHANGED, &amp;amp;ble_gatts_cfg_service_changed, ram_start);
    VERIFY_SUCCESS(err_code);
    NRF_LOG_DEBUG(&amp;quot;Finished running Service Changed config&amp;quot;);
#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It works very well on several tests on my side!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112729?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 13:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca862df3-fe8c-4dd7-bc83-4388e9a89b1a</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi trdop. Sorry for the delayed response. I have taken a look at your question for a while now and am unsure as to why this issue is occurring. I think it is best if you post this question on Nordic Mypage (you can link to this devzone question in your mypage question). Have a nice day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112728?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 14:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3baa8a6-4feb-42b9-b675-0495b74bb98e</guid><dc:creator>trdop</dc:creator><description>&lt;p&gt;&lt;em&gt;to follow up and report an important blocking point, before me putting that on MyPage…&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;————&amp;gt; I took the last example of IOS-Pods-DFU-Library v 4.0.3
with that I make sure my BL SD APP + (settings 4 Factory) v.12.2 -&amp;gt; V.12.2 without problem: &lt;strong&gt;OK&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;————&amp;gt; I took a simple example ANCS v.14.2 and I grafted DFU
with that I get my BL SD APP + (Settings 4 Factory) v.14.2 -&amp;gt; V.14.2 without problems: &lt;strong&gt;OK&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;————&amp;gt; now when I want to make the OTA of my device in the nature that are on the SDK 12.2
So BL SD APP + (Factory Settings 4) v.12.2 -&amp;gt; ANCS + DFU V.14.2&lt;/p&gt;
&lt;p&gt;This is what happens: (see in screenshots: animated GIF)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;1st pass: &lt;strong&gt;OK&lt;/strong&gt; 	&lt;/li&gt;
&lt;li&gt;2nd pass: &lt;strong&gt;NOK&lt;/strong&gt; &amp;gt;
&amp;quot;&lt;em&gt;Error 305: Writing to characteristic failed!&lt;/em&gt;&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr /&gt;
&lt;p&gt;Do you have ideas, because before advancing more in the migration I would naturally test and validate it in the state! and also I saw in the bootloader sdk_config.h v14.2 &lt;strong&gt;option BOND what it is?&lt;/strong&gt;, it is set to false but if I put it to true what will concretely change? &lt;strong&gt;I have a little trouble understanding, in that case?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In any case if you can help me or give me a track to follow about the error with characteristic not written when DFU it would be great!
Thank you&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;What I find odd too is when I use the latest version, to make my OTA from 12.2 to 14.2 with &amp;quot;nRF Connect.app&amp;quot; on iOS, instead of my Adapted IOS-Pods-DFU-Library example to make the OTA, it&amp;#39;s directly puts a message alert that can not find DFU Service? and don&amp;#39;t even go in the 1st pass which was &amp;quot;working&amp;quot; at least previously with IOS-Pods-DFU-Library example, &lt;strong&gt;would it be a source of ideas ?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0028.BLSDAPPsdk12_5F005F00_to_5F005F00_SDK14.gif" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112724?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 12:39:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9632acdf-41e1-4ae0-a8bf-c54c23bbcad3</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Good idea! Good luck! And just update this post or create a new case if you run into problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112725?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 12:19:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cafae197-2b37-4656-a8c4-4b56d6c8b8d7</guid><dc:creator>trdop</dc:creator><description>&lt;p&gt;Thank you both for these interesting and encouraging returns I will actually go to version 14.2 directly!&lt;/p&gt;
&lt;p&gt;I think it should be okay to be attentive, to tell the truth the most scary thing is this Bootloader story and memory slot allocation !&lt;/p&gt;
&lt;p&gt;@Bjørn, after I use the DK52 , but now I turn on our device that was built around the nRF52 also&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112727?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 10:28:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee9fe875-c6e0-4ae3-a6ec-6bbd1f7f0081</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I agree with @Aaron , I would definitely upgrade to SDK 14.1. &lt;a href="https://devzone.nordicsemi.com/question/169172/update-sdblapp-from-sdk-v13-to-v14-via-dfu-fails/"&gt;You can read up about a bug on SDK 14 here&lt;/a&gt;. Just curious, are you using nrf52 dk&amp;#39;s as your devices? Also agree that the DFU process can be tricky, so think hard before you start. If you really need the OTA DFU Buttonless feature, it would be a good idea to upgrade, as the 14.1 version is more stable than the one found in SDK 12.2. If you decide to start, give it a try &amp;amp; you can either update this thread or create a new case on devzone if you run into problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [SDK] Switching our project from SDK12.2 to SDK14.0</title><link>https://devzone.nordicsemi.com/thread/112726?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 17:05:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0970efc3-3ccd-4ce5-b89a-ead3402edb8c</guid><dc:creator>Aaron</dc:creator><description>&lt;p&gt;SDK 14.1 has a fix for a bug that would otherwise prevent you from updating the SoftDevice, so you&amp;#39;d definitely want that one.  Also, make sure your new bootloader fits in the same size as the old one, the UICR bootaddr can not be changed.  Also, be aware that updating the SDK is a more painful process than you might think, they do not make changes backwards compatible.  Not a Nordic Engineer, but recently gone through the process of updating to SDK 14.1.  Although looking at it recently there is a 14.2 out now, I supposed you&amp;#39;d want to update to that.&lt;/p&gt;
&lt;p&gt;When using the buttonless DFU service in 14.1, there is a second, undocumented init function you have to call or else recent nRF Connect iOS update will not be able to update your device.  See &lt;a href="https://devzone.nordicsemi.com/question/179272/nrf-connect-ios-dfu-fails-for-unbonded-buttonless-dfu-service/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>