<?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>Add mcuboot to connect SDK BLE sample &amp;quot;central and peripheral&amp;quot;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97367/add-mcuboot-to-connect-sdk-ble-sample-central-and-peripheral</link><description>Hi, 
 I&amp;#39;m trying to add BLE DFU to the nrf connect SDK sample &amp;quot;central and peripheral&amp;quot; for the nRF52832 
 I&amp;#39;ve done the following: 
 
 Add configurations to proj.conf 
 
 
 Created a directory child_image with an empty mcuboot.conf file 
 
 When I build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Mar 2023 10:56:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97367/add-mcuboot-to-connect-sdk-ble-sample-central-and-peripheral" /><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415662?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 10:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e08634-37ce-4eaa-9c36-9e70d16fabff</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Thanks, I fixed adding the following lines when using the Zephyr LE controller:&lt;br /&gt;&lt;span&gt;CONFIG_BT_HCI=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_BT_CTLR=y&lt;/span&gt;&lt;br /&gt;&lt;span&gt;CONFIG_BT_LL_SW_SPLIT=y&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415574?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 21:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e3f1293-f5e1-4bb9-8030-4bb959215eeb</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Luca,&lt;/p&gt;
[quote userid="110500" url="~/f/nordic-q-a/97367/add-mcuboot-to-connect-sdk-ble-sample-central-and-peripheral/415547"]1.&amp;nbsp;&lt;span&gt;CONFIG_BT_LL_SOFTDEVICE is not well documented, could you explain this feature what enable/disable&lt;/span&gt;[/quote]
&lt;p&gt;Even though its documentation says only &amp;quot;&lt;span&gt;Use SoftDevice Link Layer implementation,&amp;quot; it would make more sense if you read this documentation page:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.3.0/nrf/protocols/ble/index.html"&gt;Bluetooth LE Controller &amp;mdash; nRF Connect SDK 2.3.0 documentation (nordicsemi.com)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="110500" url="~/f/nordic-q-a/97367/add-mcuboot-to-connect-sdk-ble-sample-central-and-peripheral/415547"]2. I run the code with&amp;nbsp;the central_and_peripheral_hr example. When the&amp;nbsp;CONFIG_BT_LL_SOFTDEVICE is disable the dk stop to work as central but carry on working good as peripheral. is there an exaplnation to that? thanks[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am quite surprised it works at all.&amp;nbsp;However, this is unrelated to the topic discussed here. Please open a new question for that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415547?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 16:32:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa1026e-ec9b-41f7-b833-e3c6b9808f6e</guid><dc:creator>Luca Nisti</dc:creator><description>&lt;p&gt;Thanks for useful information. I need couple of clarification:&lt;br /&gt;1.&amp;nbsp;&lt;span&gt;CONFIG_BT_LL_SOFTDEVICE is not well documented, could you explain this feature what enable/disable&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I run the code with&amp;nbsp;the central_and_peripheral_hr example. When the&amp;nbsp;CONFIG_BT_LL_SOFTDEVICE is disable the dk stop to work as central but carry on working good as peripheral. is there an exaplnation to that? thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415320?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 17:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:002de716-b2dd-4d0d-862f-ff486e7e6b7d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;By the way, another disadvantage is that the Zephyr&amp;nbsp;Controller is incompatible with the multi-protocol support in NCS.&lt;/p&gt;
&lt;p&gt;I am not saying this to discourage anyone from using the Zephyr Controller.&amp;nbsp;However, since I am around, and since I had said that it is a good idea to save size, I feel compelled to list all disadvantages I know of.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415307?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 16:26:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:966ed730-3704-4183-8d54-ceafb72fcc1c</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Thanks a lot&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/variant"&gt;variant&lt;/a&gt;&amp;nbsp;for raising a good point. I should have included that in my reply.&lt;/p&gt;
&lt;p&gt;cc.&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/andreas3t"&gt;Andreas3T&lt;/a&gt;&amp;nbsp;&amp;amp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/markuckermann"&gt;markuckermann&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Nordic qualifies the Zephyr Host and the SoftDevice Controller, which you can use in the qualification process for your products. However, we don&amp;#39;t qualify the Zephyr Controller, so&amp;nbsp;projects that use it will have to&amp;nbsp;get qualification for the Controller themselves.&lt;/p&gt;
&lt;p&gt;As a reference, see &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52832/COMP/nrf52832/ble_qdid_qual_matrix.html"&gt;the qualification documentation for the nRF52832&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a downside of using the Zephyr Controller.&amp;nbsp;My apology for being unable to think of it. I was too focus on the technical aspect and missed non-technical details.&lt;/p&gt;
&lt;p&gt;See also:&amp;nbsp;&lt;a href="https://support.bluetooth.com/hc/en-us/articles/360049491871-Qualified-Design-IDs-QDIDs-and-Declaration-IDs-DIDs-"&gt;Qualified Design IDs (QDIDs) and Declaration IDs (DIDs) &amp;ndash; Bluetooth SIG Inc&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415200?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd46637-3eab-4a72-924e-af7ae74d896b</guid><dc:creator>variant</dc:creator><description>&lt;p&gt;Are there any implications for Bluetooth certification when using the Zephyr Bluetooth Controller?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415192?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:637a69a7-9540-47fb-b7d3-0459ba3be759</guid><dc:creator>Andreas3T</dc:creator><description>&lt;p&gt;That&amp;#39;s great! Thanks for the info :) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415185?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f4c8e72-395c-42bb-9078-5a646f4306eb</guid><dc:creator>Andreas3T</dc:creator><description>&lt;p&gt;Yeah, that was quite the find. A table with size comparisons would quite useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415137?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 11:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c5c2112-5df4-4d12-b9fd-431e169cc71e</guid><dc:creator>markuckermann</dc:creator><description>&lt;p&gt;Maybe this is something that could be added to the documentation and taught to your support reps? In&amp;nbsp;our case, it solves most of the problems we were dealing with just by freeing up a good amount of space. Could have saved ~two weeks of project progress &amp;amp; dev work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/415012?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 19:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbb0fb6a-cf99-4877-8c1a-d5ee5d574b39</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/markuckermann"&gt;markuckermann&lt;/a&gt;&amp;nbsp;Interesting discovery. That option didn&amp;#39;t occur to me at all.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;SoftDevice Controller is provided as a prebuilt binary with all its features included; meanwhile the Zephyr Controller can be built to include just the features your required. Therefore, it makes sense that you can achieve a smaller size using that controller.&lt;/p&gt;
&lt;p&gt;The SoftDevice Controller is&amp;nbsp;optimized for the nRF52 and nRF53 SoCs, so normally we recommend it for development. However, in&amp;nbsp;a situation where flash size&amp;nbsp;saving is of strong interest, using the Zephyr Controller makes sense.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/414782?ContentTypeID=1</link><pubDate>Sun, 12 Mar 2023 21:43:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aaefbdb-8cea-46c6-87be-57d50f88085a</guid><dc:creator>markuckermann</dc:creator><description>&lt;p&gt;I&amp;#39;ve found I could reduce my build size by a lot by not using the Soft Device for bluetooth.&lt;/p&gt;
&lt;p&gt;Not sure why this is never recommended or barely mentioned in the docs, but my build went from 230kB (barely fitting on a nrf52832 with FOTA) to just 166KB!&lt;/p&gt;
&lt;p&gt;CONFIG_BT_LL_SOFTDEVICE=n&lt;br /&gt;CONFIG_BT_HCI=y&lt;br /&gt;CONFIG_BT_CTLR=y&lt;br /&gt;CONFIG_BT_LL_SW_SPLIT=y&lt;br /&gt;&lt;br /&gt;I&amp;#39;m sure the Soft Device is great but since the new SDK doesn&amp;#39;t allow the Bootloader &amp;amp; App to share it, and none of the above options are easily supported, it&amp;#39;s hard to justify!&lt;br /&gt;&lt;br /&gt;I will keep you updated if this change turns out to be problematic in any way.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/414658?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 13:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66609361-3b43-4b32-8bde-f02da8c2d212</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;One more thing, there are some other alternatives I forgot to mention.&lt;/p&gt;
&lt;p&gt;To make this a summary, the options are:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52.html"&gt;an SoC variant with more flash&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Adding an external flash.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The following methods are also technically possible, but they are not officially supported, so realizing them will not be trivial, and technical support for them can be&amp;nbsp;limited.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A recovery image as discussed in this case:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93374/ble-recovery-image"&gt;BLE Recovery Image&lt;/a&gt;&amp;nbsp; .&lt;/li&gt;
&lt;li&gt;Single application slot DFU with CONFIG_SINGLE_APPLICATION_SLOT.
&lt;ul&gt;
&lt;li&gt;OTA is not possible out of the box with this.&lt;/li&gt;
&lt;li&gt;OTA can be possible if you move the SMP Server to the bootloader. &lt;br /&gt;This is also discussed in the Recovery Image case above.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Use Nordic Secure Immutable Bootloader as the only bootloader.
&lt;ol&gt;
&lt;li&gt;A full DFU solution is not supported out of the box.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;OTA is not possible out of the box with this.&lt;/li&gt;
&lt;li&gt;Possibility of moving the SMP Server to the bootloader has not been evaluated. Most likely not trivial.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Use the nRF5 SDK Secure Bootloader and a SoftDevice as the only bootloader.
&lt;ol&gt;
&lt;li&gt;Theoretically possible, not yet evaluated.&lt;/li&gt;
&lt;li&gt;BLE and Serial OTA supported&amp;nbsp;possible.&lt;/li&gt;
&lt;li&gt;Single slot update possible.&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Overall, we still recommend&amp;nbsp;changing SoC variant or adding an external flash.&amp;nbsp;Depends on specific use cases and system architecture, the latter four methods, while challenging, can also be considered.&lt;/p&gt;
&lt;p&gt;Sorry I am late with those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/413789?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 11:12:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136378c0-53a2-4fe5-91fa-16602cef966c</guid><dc:creator>Andreas3T</dc:creator><description>&lt;p&gt;Alright, thanks for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add mcuboot to connect SDK BLE sample "central and peripheral"</title><link>https://devzone.nordicsemi.com/thread/413633?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 18:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e795a74-f14a-45e5-9c16-59c63cd7e528</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
[quote user=""]Is there some memory allocated for the DFU slot which causes the overflow?[/quote]
&lt;p&gt;There will also be memory allocated for the MCUboot bootloader as well, it is the combination of&amp;nbsp;those that give you that build failure.&lt;/p&gt;
&lt;p&gt;If you run the memory report in a project where you can successfully build with DFU, like the Peripheral LBS, you can see the slots in the Partition Manager report.&lt;/p&gt;
&lt;p&gt;To get more spaces, you could try to turn off all features unused. In &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/v2.3.0/samples/bluetooth/peripheral_uart"&gt;the Peripheral UART sample&lt;/a&gt;, there is &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.3.0/samples/bluetooth/peripheral_uart/prj_minimal.conf"&gt;the prj_minimal.conf config file&lt;/a&gt;, where this is demonstrated.&lt;/p&gt;
&lt;p&gt;I tried to&amp;nbsp;borrow most of the configs from Peripheral UART over to Central and Peripheral HR and was able to build with MCUboot enabled. However, the ROM usage is still very high 95%. This is without any feature other than in the sample.&amp;nbsp;Depends on your future&amp;nbsp;plan, that number might be too high, and you might want to consider &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf52/struct/nrf52.html"&gt;SoC variants with more flash&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Below is a screenshot of the Partition Manager report from my attempt for your reference.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1678127471410v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>