<?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>Makefile does not produce runnable code, SES does</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123088/makefile-does-not-produce-runnable-code-ses-does</link><description>Hi all 
 I have a project that I developed with SDK 17.0.2 in Segger Embedded Studio. It works well, but now I would like to add a GitHub Runner to compile it every time I push something to my main branch. For that, I want to build a Makefile, so it can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 19 Jul 2025 20:56:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123088/makefile-does-not-produce-runnable-code-ses-does" /><item><title>RE: Makefile does not produce runnable code, SES does</title><link>https://devzone.nordicsemi.com/thread/542929?ContentTypeID=1</link><pubDate>Sat, 19 Jul 2025 20:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ddb240f-b5a8-4d27-bbc7-27bb8866a422</guid><dc:creator>fuesel</dc:creator><description>&lt;p&gt;After looking at this for days, of course I find the solution some hours after posting here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The problem lies in this line in the linker script:&lt;/p&gt;
&lt;p&gt;RAM (rwx) :&amp;nbsp; ORIGIN = 0x20002288, LENGTH = 0xdd90&lt;/p&gt;
&lt;p&gt;This defines the RAM start and size. Adding these two numbers together:&amp;nbsp;&lt;span&gt;0x20002288 + 0xdd90 =&amp;nbsp;&lt;/span&gt;&lt;span&gt;0x20010018. However, according to the product specifications&amp;nbsp;&lt;a id="" href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/memory.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf52832/page/memory.html&lt;/a&gt;&amp;nbsp;the maximum allowed RAM size is 0x20010000. The correct length is calculated as such: 0x20010000 -&amp;nbsp;0x20002288 =&amp;nbsp;&lt;/span&gt;0xdd78. Correcting this value gives the following line:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;RAM (rwx) :&amp;nbsp; ORIGIN = 0x20002288, LENGTH = 0xdd78&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I do not understand why this worked in SES, but it did. And it did not work using a Makefile - as it should.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>