<?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>Flash usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42814/flash-usage</link><description>Hello, I am currently evaluating the nrf52840 and nrf52832 for the purpose of bluetooth mesh. I found flash usage information in the mesh SDK documentation as follows: 
 Build type: MinSizeRel ( -Os ), Logging: None 
 
 
 
 
 Flash usage (kB) 
 RAM usage</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Jan 2019 10:01:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42814/flash-usage" /><item><title>RE: Flash usage</title><link>https://devzone.nordicsemi.com/thread/167313?ContentTypeID=1</link><pubDate>Wed, 23 Jan 2019 10:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e09dc1bb-116d-4ca9-acad-f7ada3ffc6d3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Radu,&lt;/p&gt;
&lt;p&gt;When you updating the softdevice and application, you need to update the softdevice first and then the application. What happens is that the new application may not work with the old softdevice so you can&amp;#39;t verify that it works or not. The suggested process should be: softdevice -&amp;gt; bootloader -&amp;gt; application.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash usage</title><link>https://devzone.nordicsemi.com/thread/167179?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 16:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd651350-c1e3-444f-86ba-37ae2d77d72c</guid><dc:creator>qweqwe12</dc:creator><description>&lt;p&gt;Thank you for the reply.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I think I understand now. For this application to function proprely, it also needs to use the binary softdevice and the total combined is what I had in my first post.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Concerning DFU over the air, would I be able to update the application first in the swap bank, do the update and make sure it works, then update softdevices if there is ever a change to it also? I&amp;#39;m asking because this way it would require a smaller swap bank than updating everything at once (softdevice + app.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash usage</title><link>https://devzone.nordicsemi.com/thread/167150?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 15:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33518df1-57aa-4740-aa52-76ffa541fa1f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Radu,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you see in the flash/ram usage when compiling is including the softdevice. If you compile using cmake&amp;nbsp;you would see the actual size of the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In Project Common setting -&amp;gt; Linker-&amp;gt; Section Placement Macros you can find&amp;nbsp;FLASH_START = 0x26000. This is the start address of the application. If you take the total size minus the start address of the application you will have the size of the application. Same applied for RAM. Please make sure you compile with Release version, not Debug one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When doing DFU over the air, the bootloader will store the new image in the swap bank when keeping the application running. The full image will be store in the swap area.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible to do single bank update with our bootloader. But then the application will be erased before the image being received, interrupting the normal operation of the network.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>