<?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 there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30159/is-there-a-clear-simple-explanation-of-how-to-setup-the-gcc-linker-scripts</link><description>I&amp;#39;ve been trying to run some of the examples provided with the SDK&amp;#39;s. Blinky is the only one I&amp;#39;ve gotten to work for sure. I think I haven&amp;#39;t set up the linker scripts properly. 
 I&amp;#39;ve been looking at a couple linker scripts for nrf51822&amp;#39;s. The number</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 04 Feb 2018 20:38:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30159/is-there-a-clear-simple-explanation-of-how-to-setup-the-gcc-linker-scripts" /><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119647?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2018 20:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79de8a66-ac4e-4c39-856e-f8293dabb547</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;Just a little trap to watch out for, the soft device size changes between versions, so linker scripts have to be changed if you change soft device version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119634?ContentTypeID=1</link><pubDate>Sun, 04 Feb 2018 00:08:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50d6705c-88ee-4a97-a679-3b002cb70d49</guid><dc:creator>Mron</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;ORIGIN = 0x1b000, LENGTH = 0x40000 - 0x1b000&amp;quot; &amp;nbsp;is more understandable.&amp;nbsp;&lt;/span&gt;As my elementary school teacher would say- &amp;quot;Show your work&amp;quot;.&lt;/p&gt;
&lt;p&gt;This is the info I needed: &amp;quot;&lt;span&gt;Softdevice RAM usage depends on how many features you enable. See documentation for sd_ble_enable() function call.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119632?ContentTypeID=1</link><pubDate>Sat, 03 Feb 2018 21:21:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a088d06-2af4-4f99-8cd9-336a143cde11</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Elementary Math: 0x40000 - 0x1b000 = 0x25000&lt;/p&gt;
&lt;p&gt;Softdevice RAM usage depends on how many features you enable. See documentation for sd_ble_enable() function call.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119631?ContentTypeID=1</link><pubDate>Sat, 03 Feb 2018 19:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80ae2aa1-b551-4fff-b804-39af7136cca5</guid><dc:creator>Mron</dc:creator><description>&lt;p&gt;Thanks for your reply. i have found many .ld scripts to look at., Very few are well documented. I&amp;#39;ve had trouble getting examples to run, and several times it&amp;#39;s because I picked the wrong .ld. Having one or two well documented examples would help me understand what i&amp;#39;m looking at when I open a .ld file. For instance few use .ld math. For instance:&lt;/p&gt;
&lt;p&gt;FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x40000 - 0x1b000 &amp;lt;- clearer to me&lt;br /&gt;vs&lt;/p&gt;
&lt;p&gt;FLASH (rx) : ORIGIN = 0x1b000, LENGTH = 0x25000 &amp;lt;- where did this number come from?&lt;/p&gt;
&lt;p&gt;and .ld files for the same board and same soft device will have different values:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RAM (rwx) :&amp;nbsp; ORIGIN = 0x20002bd8, LENGTH = 0x5428 &amp;lt;- sometimes it&amp;#39;s this&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RAM (rwx) :&amp;nbsp; ORIGIN = 0x20001eb0, LENGTH = 0x6150 &amp;lt;- and sometimes this --- Why did this one need less&amp;nbsp;RAM for the&amp;nbsp;soft device ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119630?ContentTypeID=1</link><pubDate>Sat, 03 Feb 2018 18:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae773314-14f5-46bf-a196-46b2c41e8377</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;There are a lot of them in the SDK examples, and they should work for most custom projects without any modifications.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a clear, simple explanation of how to setup the gcc linker scripts?</title><link>https://devzone.nordicsemi.com/thread/119627?ContentTypeID=1</link><pubDate>Sat, 03 Feb 2018 17:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6dc77bc-1d05-4a12-962c-0fbe143fa7e7</guid><dc:creator>Mron</dc:creator><description>&lt;p&gt;I&amp;#39;ve run down info on linker script syntax and function. I would like to know when and how to modify them.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>