<?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>Can application codes located in the unsed part of the flash area of the softdeivce</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69197/can-application-codes-located-in-the-unsed-part-of-the-flash-area-of-the-softdeivce</link><description>The size of flash of softdevice in the &amp;quot;s132_nrf51822_5.0.0_release-notes&amp;quot; is 0x23000 but atrually the size of the flash used by softdevice is 0x224A7, which I found when I open softdevice hex file . 
 Can I locate a little part of the application codes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Dec 2020 14:09:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69197/can-application-codes-located-in-the-unsed-part-of-the-flash-area-of-the-softdeivce" /><item><title>RE: Can application codes located in the unsed part of the flash area of the softdeivce</title><link>https://devzone.nordicsemi.com/thread/284101?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 14:09:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7230018e-b010-434e-8fa8-bfb46d473fd9</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;Oh, I see,&amp;nbsp;thank you very much for taking the time to help me resolve my problems.&lt;/p&gt;
&lt;p&gt;Only static flash data that is no longer changed can be placed after softdevice because it&amp;#39;s not allowed to erase any page used by the softdevice and the area between 0x22500 and 0x23000 would not be wriiten by softdevice after system starting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can application codes located in the unsed part of the flash area of the softdeivce</title><link>https://devzone.nordicsemi.com/thread/283853?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 14:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7441dab6-45a7-475c-aaf5-4425fcf3e56b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Not without changes in the softdevice, so I don&amp;#39;t think you will be able to do this. Perhaps if your application contains any static flash data, you can place this in the softdevice area (directly after the softdevice), but it is not straight forward to make the adjustment so that your app starts at 0x225000. As I mentioned, the reason for this is that the softdevice will always start the application placed in 0x23000. We do not have a softdevice that starts the application at 0x22500, and even if we did those changes, it would require a lot of qualification work and costs just to change that address, so I don&amp;#39;t find it very likely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if you have some data that you never need to change (a table of static data), then you can place this in the area right after the softdevice.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can application codes located in the unsed part of the flash area of the softdeivce</title><link>https://devzone.nordicsemi.com/thread/283844?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 14:15:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a53aa063-829f-4e16-8a94-c1532a770090</guid><dc:creator>Rayliyn</dc:creator><description>&lt;p&gt;OK, thank you Edvin!&amp;nbsp;Can I ask you more?&lt;/p&gt;
&lt;p&gt;Can I continue to do so If my application starts at 0x23000(that&amp;#39;s it now) and I needn&amp;#39;t use DFU service and everytime I update my firmware in the way that I reburn the hex file which merges the softdevice and application codes?&lt;/p&gt;
&lt;p&gt;I have a program that does this. It seems to be running normally, but I am worried about other problems that I don&amp;rsquo;t know about.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can application codes located in the unsed part of the flash area of the softdeivce</title><link>https://devzone.nordicsemi.com/thread/283778?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 11:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38347d2-ffb5-4022-9a24-067461c0d8ae</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Unfortunately, you can not. The softdevice will always start the application running at 0x23000, and it is not possible to change this from the softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason it is done this way is that if you want to support DFU, it must be possible to update the application without removing the softdevice. This means that the application can&amp;#39;t be using any of the same flash pages as the softdevice, which is why the area between 0x224A7 and 0x23000 is not used. If your application is too large, you can check that you have enabled optimization (for size). If that is not enough, I am afraid you must either use a different (smaller) softdevice, or a chip with a larger flash, such as the nRF52832 or nRF52833.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>