<?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>nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84617/nrf51822-zephyr-os-vs-softdevice</link><description>Hello, guys. 
 We have nRF51822 SoC with 256KB of Flash and 32KB of RAM memories at our disposal. For our application, we would need to use the BLE stack + over-the-air DFU. 
 What would be less demanding from the memory point of view: 
 
 Using SDK and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Feb 2022 10:32:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84617/nrf51822-zephyr-os-vs-softdevice" /><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352544?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 10:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8261b8c-b168-4380-b3f7-076f040f5ddb</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Yeah, that&amp;#39;s clear. We have 120kB of flash space for Application + App Data at our disposal. &lt;/p&gt;
&lt;p&gt;thanks for your assistance. You&amp;#39;ve been of great help! I will close this ticket now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352542?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 10:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b6423a0-6a64-4b25-87be-131ba31a2d3f</guid><dc:creator>Sigurd</dc:creator><description>[quote user="bojan"]120kB will be at our disposal for the application. This would mean we can apply a dual-bank DFU update if the app size is less than 60kB or only a single-bank update if the app size is more than 60kB in size?[/quote]
&lt;p&gt;Yes, correct, ref &amp;quot;&lt;span&gt;The DFU bootloader checks if a dual-bank update is possible. Only if it is not (because the free memory is not sufficient), it will revert to a single-bank update.&amp;quot; ref, mentioned at the page I linked to.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PS: I didn&amp;#39;t account for &amp;quot;App data&amp;quot; in my calculation, so you would need to take that into account as well. I.e. check how much space you reserve for e.g. storing bonding information in your application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352527?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 09:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f1fcac3-a53e-409c-9d7b-a60bf889ac9f</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Thanks for the detailed explanation, &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;120kB will be at our disposal for the application. This would mean we can apply a dual-bank DFU update if the app size is less than 60kB or only a single-bank update if the app size is more than 60kB in size?&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352519?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 09:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c66a71dc-14d4-4ae3-8fe6-0e50ca4b46c4</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="76830" url="~/f/nordic-q-a/84617/nrf51822-zephyr-os-vs-softdevice/352506#352506"]&lt;ul&gt;&lt;li&gt;SDK + SoftDevice + Single-Bank Updates&lt;/li&gt;
&lt;li&gt;Zephyr OS + MCUBoot&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;The first option, since there is no single-bank OTA DFU option with Zephyr/MCUBoot.&lt;/p&gt;
[quote userid="76830" url="~/f/nordic-q-a/84617/nrf51822-zephyr-os-vs-softdevice/352511#352511"]Can we suppose that &lt;a href="https://www.nordicsemi.com/Products/Development-software/S130/Download?lang=en#infotabs" rel="noopener noreferrer" target="_blank"&gt;SoftDevice S130 v2.0.1&lt;/a&gt; and DFU bootloader are stable enough so that there will be no need to update them in the future (we don&amp;#39;t need anything exotic from the BLE)?[/quote]
&lt;p&gt;No guarantees, but likely yes, there have not been any new updates to S130 since 2016.&lt;/p&gt;
&lt;p&gt;For a single bank application update, I believe you would be able to fit a 120kB application:&lt;br /&gt;256 kB - 24 kB(Nordic Secure Bootloader) - 4kB(Bootloder settings page) - 108 kB SD(S130) = 120 kB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352511?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 09:28:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee11b19-ff1e-443b-8e77-331db01accbf</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Hey, &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Can we suppose that &lt;a href="https://www.nordicsemi.com/Products/Development-software/S130/Download?lang=en#infotabs" rel="noopener noreferrer" target="_blank"&gt;SoftDevice S130 v2.0.1&lt;/a&gt; and DFU bootloader are stable enough so that there will be no need to update them in the future (we don&amp;#39;t need anything exotic from the BLE)?&lt;/p&gt;
&lt;p&gt;That way, there will be no need to update SoftDevice and bootoloader. We would only need to update our application from time to time by using Dual-bank Updates.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Other than that, can you tell me what amount of memory is taken by SoftDevice S130 and DFU bootloader. This would help me a lot visualize the space we have for the application.&lt;/p&gt;
&lt;p&gt;Cheers &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f37b.svg" title="Beers"&gt;&amp;#x1f37b;&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352506?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 09:10:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7b18107-6da4-467c-97f8-472e65e5e198</guid><dc:creator>bojan</dc:creator><description>&lt;p&gt;Thank you very much, &lt;a href="https://devzone.nordicsemi.com/members/sigurdon"&gt;Sigurd&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;Given the fact that we are very limited with Flash and RAM, which approach would be optimal for us to take?&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;SDK + SoftDevice + Single-Bank Updates&lt;/li&gt;
&lt;li&gt;Zephyr OS + MCUBoot&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Bojan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822: Zephyr OS vs SoftDevice</title><link>https://devzone.nordicsemi.com/thread/352504?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 09:01:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3da66b-dd73-4727-8942-267dd4cc808c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For nRF5-SDK, see this link:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader_dfu_banks.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With MCUBoot, it would look something like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1644569844455v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can read about MCUBoot here: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/mcuboot/wrapper.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/mcuboot/wrapper.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>