<?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>Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111362/replace-zephyr-ble-stack-with-ncs-ble</link><description>I have very advanced project based on nrf52840dk for dev and custom boards for prod. 
 The development environment is based on zephyr build dockers. Zephyr is 3.5.0. 
 I would need to change the Zephyr BLE stack into NCS one (NCS is not currently used</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 May 2024 11:30:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111362/replace-zephyr-ble-stack-with-ncs-ble" /><item><title>RE: Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/thread/485617?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 11:30:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49f58030-1686-4ca2-8288-f697943668b8</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="Michal Piekos"]QDID is one of the reasons I wanted to change stacks in the first place.[/quote]
&lt;p&gt;Currently the only way to use the QDID is to work from NCS tag, so if that is what you want then that is currently what you will have to do.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Michal Piekos"]. I can also try to include full&amp;nbsp;NCS on top of current Zephyr.[/quote]
&lt;p&gt;NCS is based on Zephyr so that would leave you with two Zephyr instances.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Michal Piekos"]What does CONFIG_BT_LL_SOFTDEVICE does? [/quote]
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_LL_SOFTDEVICE"&gt;Kconfig search — Kconfig reference (nordicsemi.com)&lt;/a&gt;&amp;nbsp;, info on it can be found here&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/ble/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/ble/index.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/thread/485546?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 07:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8de8f5e1-5634-46fe-8cef-2c7deec3621d</guid><dc:creator>Michal Piekos</dc:creator><description>&lt;p&gt;Thanks again.&amp;nbsp;I managed to run it with changed hci.&lt;/p&gt;
&lt;p&gt;What does CONFIG_BT_LL_SOFTDEVICE does? I do not see much difference whether it is set to &amp;#39;n&amp;#39; or &amp;#39;y&amp;#39;. In both cases there are quite many references to /nrfxlib/softdevice_controller in zephyr.map&lt;/p&gt;
[quote userid="91187" url="~/f/nordic-q-a/111362/replace-zephyr-ble-stack-with-ncs-ble/485541"]The host QDID is ONLY valid for the nRF Connect SDK tag used.[/quote]
&lt;p&gt;QDID is one of the reasons I wanted to change stacks in the first place. I can also try to include full&amp;nbsp;NCS on top of current Zephyr. Would that solve QDID problem?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/thread/485541?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 07:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:128cb6d5-5054-427f-98a4-c1ed7f406aa5</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;One thing to note is that the QDID will not be valid if you morph the &amp;quot;BLE stack&amp;quot; in to Zephyr and want to use SDC. The host QDID is ONLY valid for the nRF Connect SDK tag used.&lt;br /&gt;&lt;br /&gt;If you&amp;nbsp;wants to use the softdevice controller with upstream zephyr you will have to copy the hci driver in &lt;code&gt;sdk-nrf/subsys/bluetooth/controller&lt;/code&gt; and link with the correct library from nrfxlib.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/thread/485474?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 15:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487f7226-5456-4c6a-bfd5-3ca712fb8569</guid><dc:creator>Michal Piekos</dc:creator><description>&lt;p&gt;Hi. Thanks for reaching out. Of course I cannot afford this way. We have an ongoing product development setup which is quite significantly customized to our needs. I need to find a way to integrate NCS or at least its BLE stack on top of existing zephyr 3.5.0. So far I combined manifests to pull nrf and nrfxlib repos as I think both will be needed.&lt;/p&gt;
&lt;p&gt;We are using only below includes.&lt;/p&gt;
&lt;p&gt;#include &amp;lt;zephyr/bluetooth/bluetooth.h&amp;gt;&lt;br /&gt;#include &amp;lt;zephyr/bluetooth/hci.h&amp;gt;&lt;br /&gt;#include &amp;lt;zephyr/bluetooth/conn.h&amp;gt;&lt;br /&gt;#include &amp;lt;zephyr/bluetooth/uuid.h&amp;gt;&lt;br /&gt;#include &amp;lt;zephyr/bluetooth/gatt.h&amp;gt;&lt;/p&gt;
&lt;p&gt;I think I would need to replace LL with Softdevice and then do some magic in cmake files to set proper constants (which one) and pull NCS sources when needed. The difficulty also lies that I do not understand fully to what extend NCS BLE and Zephyr BLE are interconnected. In different words what parts of BLE stack I need to replace with NCS counterpart?&lt;/p&gt;
&lt;p&gt;Any help with above would be welcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Replace Zephyr BLE stack with NCS BLE</title><link>https://devzone.nordicsemi.com/thread/485470?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 14:50:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9284adce-d71e-4dcb-a2c3-084aec0ed4e7</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;The best way to go forth would be to start with the nRF Connect SDK and work from there to integrate your zephyr project.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Jonathan&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>