<?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>Max size of the application for Firmware upgrade OTA (nRF52832)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32035/max-size-of-the-application-for-firmware-upgrade-ota-nrf52832</link><description>Hi, 
 Question about FOTA (firmaware upgrade over the air). 
 I know that nrf52832 has 512 kB of flash, and the ble stack( softdevice ) has 136 kB , and the bootloader has 19 kB. 
 So MBR + Ble stack+ bootloader = 159 kB. 
 Q: What is the Max size of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Mar 2018 16:10:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32035/max-size-of-the-application-for-firmware-upgrade-ota-nrf52832" /><item><title>RE: Max size of the application for Firmware upgrade OTA (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/124213?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 16:10:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebf1fd79-20df-4347-8178-b91e0f9af71c</guid><dc:creator>TAR CHAL</dc:creator><description>&lt;p&gt;thanks for these clarifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Max size of the application for Firmware upgrade OTA (nRF52832)</title><link>https://devzone.nordicsemi.com/thread/124209?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 15:39:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fbb136-0784-4074-a67d-b61ba9be17c2</guid><dc:creator>Rune Holmgren</dc:creator><description>&lt;p&gt;&lt;strong&gt;&amp;quot;I know that&amp;nbsp;nrf52832&amp;nbsp;has&amp;nbsp;512&amp;nbsp;kB of flash&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There exists a variant with 256 kB as well, but yes, the most common one which you find on our development kits has 512 kB.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;ble&lt;strong&gt; stack(softdevice) has&amp;nbsp;136&amp;nbsp;kB&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;For S132 v5.X.X, yes, and as you have correctly done later on the MBR comes in addition to the SoftDevice itself. Other SoftDevices have other sizes.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;the&amp;nbsp;bootloader&amp;nbsp;has&amp;nbsp;19&amp;nbsp;kB&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First a clarification: The nRF52832 has 4 kB flash pages, so nothing can ever really be 19 kB from the perspective of the bootloader. When the bootloader copy firmware, it&amp;#39;s done at whole flash pages.&lt;/p&gt;
&lt;p&gt;Which bootloader did you check? As far as I can recall, all SDKs since SDK 12.0.0 has had a bootloader of 24 kB. Additionally, the bootloader settings page, MBR settings page and any reserved app data come in addition to the bootloader itself. This means that with the two settings pages (both required) the minimum size required to have a bootloader is 32 kB. The default reserved app data is 3 pages, but you can remove this if you want to. It&amp;#39;s an area of flash which the application can use to store data persistently&amp;nbsp;which the bootloader will never overwrite.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;What is the&amp;nbsp;Max&amp;nbsp;size of the&amp;nbsp;application&amp;nbsp;that we can reach and still can do the&amp;nbsp;Full&amp;nbsp;firmware upgrade over the air (Softdevice +application+bootloader)?&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Our bootloader implements &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Flib_bootloader_dfu_banks.html&amp;amp;cp=4_0_0_3_5_1_2"&gt;dual banking and single banking&lt;/a&gt;. So if the application is too large to fit at the same time as the new SoftDevice and Bootloader it will be deleted temporarily while the SoftDevice+Bootloader update is complete the application will be added in a separate&amp;nbsp;Application update. Both of the updates are done right after each other&amp;nbsp;automatically, so an end user will not experience it as two updates, but from a technical point of view this is what happens.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;quot;So MBR + Ble stack+ bootloader =&amp;nbsp;159 kB.&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;MBR + Ble stack + bootloader + MBR settings page + bootloader settings page =&lt;/p&gt;
&lt;p&gt;4 + 136 + 24 + 4 + 4 = 172 kB&lt;/p&gt;
&lt;p&gt;This means your application can be up to 340 kB, but most customers will have at least 2 pages of reserved app flash additionally. With an application of this size, you can still perform full firmware upgrades.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Just to put this answer in context, here is a map of the typical flash content.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/135x583/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-3f9a2f2730cd445ab0435e119886d1b3/map.PNG" alt=" " /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Rune Holmgren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>