<?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>Eclipse: region ram overflow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6127/eclipse-region-ram-overflow</link><description>i am working with eclipse. i want to create a binary file. after successfully creating the .elf file eclipse displays a make error saying region ram overflow by so and so bytes. what should i do?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Mar 2015 13:36:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6127/eclipse-region-ram-overflow" /><item><title>RE: Eclipse: region ram overflow</title><link>https://devzone.nordicsemi.com/thread/21450?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 13:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1533a36-32c4-4d25-9f5a-11fa726b6e3b</guid><dc:creator>keerthana</dc:creator><description>&lt;p&gt;Okay I will try it. Thanks a lot. Can I increase the size of the memory allocated to eclipse as a solution?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse: region ram overflow</title><link>https://devzone.nordicsemi.com/thread/21449?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 13:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04d7fbea-6bde-4766-a9ed-aa0f45590c52</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;i verified that the .elf file isn&amp;#39;t being created. the error occurs while creating the file. .map file is being created. it says : ram origin: 0x82000000 length:0x00007800 usrstack origin: 0x82007800 length: 0x00005000 how do i allocate more ram space to eclipse?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The ram origin and length is wrong. Are you using the linker script in the SDK? You can import the &lt;strong&gt;gcc_nrf51_common.ld&lt;/strong&gt; linker script in the &amp;quot;components/toolchain/gcc&amp;quot; folder to eclipse.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse: region ram overflow</title><link>https://devzone.nordicsemi.com/thread/21448?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2015 09:10:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:476485bc-d81a-496c-b487-cd7c4dc01837</guid><dc:creator>keerthana</dc:creator><description>&lt;p&gt;sorry, i verified that the .elf file isn&amp;#39;t being created. the error occurs while creating the file.
.map file is being created.
it says : ram origin: 0x82000000 length:0x00007800
usrstack origin: 0x82007800 length: 0x00005000
how do i allocate more ram space to eclipse?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse: region ram overflow</title><link>https://devzone.nordicsemi.com/thread/21447?ContentTypeID=1</link><pubDate>Thu, 19 Mar 2015 23:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ffa9f77-f40a-4e5d-9d5b-1fe887ed4f39</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t sound right. That message comes from the link which means you are NOT successfully creating the .elf file, the link is failing.&lt;/p&gt;
&lt;p&gt;Use less RAM - the message says your code is asking for more RAM than your chip has on it. Use  a smaller stack, smaller heap, go look for other places using lots of RAM and reduce it.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know if Eclipse produces a .map file telling you where it&amp;#39;s placed things, that&amp;#39;s one good place to start figuring out where your RAM usage is.&lt;/p&gt;
&lt;p&gt;One fairly common mistake is having a load of static data which isn&amp;#39;t marked const, that ends up getting copied into RAM on startup just wasting RAM for no reason.&lt;/p&gt;
&lt;p&gt;Or get a chip with more RAM on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>