<?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>Dual Application Code in Memory for NRF51822, 256kB flash &amp;amp; 32kB RAM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31955/dual-application-code-in-memory-for-nrf51822-256kb-flash-32kb-ram</link><description>Hello All Supporters, 
 I&amp;#39;m developing one NRF51822 based product.so sometimes will need to update application codes as new features arrives.so if my user update(replace)application by OTA successfully and if that application code has bug or some other</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Mar 2018 14:08:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31955/dual-application-code-in-memory-for-nrf51822-256kb-flash-32kb-ram" /><item><title>RE: Dual Application Code in Memory for NRF51822, 256kB flash &amp; 32kB RAM</title><link>https://devzone.nordicsemi.com/thread/123954?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 14:08:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8bca042-96e5-4029-a47d-b5333adbf514</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our&amp;nbsp;DFU does not provide this functionality.&lt;/p&gt;
&lt;p&gt;You cannot execute from a &amp;quot;golden firmware&amp;quot; version, as the DFU will invalidate this space upon upgrade. If you have a critical bug, you will need to patch this by releasing a new OTA.&lt;/p&gt;
&lt;p&gt;Even if this was possible, you&amp;#39;re out of space:&lt;/p&gt;
&lt;p&gt;Total flash size of the nRF51x22_xxAA/AC : 256 kB&lt;/p&gt;
&lt;p&gt;S130 is 0x1b000 (108kB) long&lt;/p&gt;
&lt;p&gt;Your application is 80 kB&lt;/p&gt;
&lt;p&gt;The DFU is 21 kB&lt;/p&gt;
&lt;p&gt;SWAP_SPACE needs to be &amp;gt;= application_size (80 kB in your case)&lt;/p&gt;
&lt;p&gt;108 + 21 + 80*2 = 289 kByte, which is greater than 256 kB.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>