<?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>Is it possible to change that APP start address ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46131/is-it-possible-to-change-that-app-start-address</link><description>How the start address of my FW is set ? I would like to add a &amp;quot;library&amp;quot; right after the Soft Device. And the move the APP after this library. I can make it work when I have a Custom Bootloader that jump to this new address. But not on testing my Firmware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2019 08:00:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46131/is-it-possible-to-change-that-app-start-address" /><item><title>RE: Is it possible to change that APP start address ?</title><link>https://devzone.nordicsemi.com/thread/182003?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 08:00:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67ac1c04-4fb6-4a1f-a482-710989355ca0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, it&amp;#39;s possible, but you need to a custom bootloader to boot&amp;nbsp;an application at a&amp;nbsp;nondefault address. The default app start address (no bootloader present) is hardcoded in the Softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Softdevice/MBR boot sequence is explained here:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/mbr_bootloader/mbr_sd_reset_behavior.html?cp=3_4_1_0_11_2"&gt;Master boot record and SoftDevice reset procedure&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Another alternative could be to reserve flash pages for the library below FDS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to change that APP start address ?</title><link>https://devzone.nordicsemi.com/thread/181871?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 13:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3cb5d4-89b0-418a-89c3-3451b9680619</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;In your linker script (e.g. *.ld in your project), there is a section:&lt;/p&gt;
&lt;p class="p1"&gt;MEMORY&lt;/p&gt;
&lt;p class="p1"&gt;{&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;FLASH (rx) : ORIGIN = 0x23000, LENGTH = 0x5d000&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;RAM (rwx) :&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;ORIGIN = 0x20002310, LENGTH = 0xDCF0&lt;/p&gt;
&lt;p class="p1"&gt;}&lt;/p&gt;
&lt;p class="p1"&gt;that defines where the application starts. In my case I use SoftDevice with some custom attributes and therefore my app starts at 0x20002310. A &amp;#39;clean&amp;#39; app (no SoftDevice) would start at 0x20000000 and can have length&amp;nbsp;0x10000 (or 64KB).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>