<?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>DFU OTA - Softdevice - secure bootloader example takes huge space itself.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111128/dfu-ota---softdevice---secure-bootloader-example-takes-huge-space-itself</link><description>Hello All, 
 
 I have firmware ready for nRF52833 in softdevice using SDK 17.0.2. Which consumpes approximatly 356KB of flash please check below screen shot 
 
 My plan was to integrate DFU / OTA in this application, but when I tried to load the SDK example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2024 13:30:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111128/dfu-ota---softdevice---secure-bootloader-example-takes-huge-space-itself" /><item><title>RE: DFU OTA - Softdevice - secure bootloader example takes huge space itself.</title><link>https://devzone.nordicsemi.com/thread/483068?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 13:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73ac8f5d-424a-4bfd-a030-0b96b65c3e07</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Neeraj,&lt;/p&gt;
&lt;p&gt;The graphical representation of memory usage in Segger Embedded Studio can be misleading, as it shows the whole physical memory, and shows parts not used for this pacticular image as used. So for the bootlaoder which is placed close to the end of the flash, it will also show the reseved flash as used. You can get more details by selecting the memory view window, and expanding to seeing the different parts as shown here (this is for a device with less memory, but the principle remains the same):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/memory_5F00_usage_5F00_ses.png" /&gt;&lt;/p&gt;
&lt;p&gt;As you can see here, most of the &amp;quot;used&amp;quot; memory is reserved.&lt;/p&gt;
&lt;p&gt;Generally using DFU on the nRF52833 should be no problem, but you need to get an overview of the memory layout, as showsn in the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_bootloader.html?cp=9_1_3_5_0_7#lib_bootloader_memory"&gt;bootloader modules documentation&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In short, you need to find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SoftDevice size (you can read this from the SoftDevice specification. Let us assume 0x26000 bytes.&lt;/li&gt;
&lt;li&gt;Bootloader size. The example SDK Bluetooth bootlaoder takes 0x6000 bytes, wich is the case for S140 version 7.&lt;/li&gt;
&lt;li&gt;Bootloader settings page. 0x1000&lt;/li&gt;
&lt;li&gt;MBR params page. 0x1000 (not needed if you don&amp;#39;t support bootloader updates)&lt;/li&gt;
&lt;li&gt;Persistent storage / FDS for use with BLE bonding, let us say 0x3000 (configurable)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you sum this up, and add any other flash pages you need for soemthing specail, the rest is available for your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>