<?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>do I have RAM overflow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15490/do-i-have-ram-overflow</link><description>I&amp;#39;m using nrf51, I noticed that when I disable some functions calling (in the file flash_memory_management.c ), the behavior or the function in the file ( fatigue.c ) is correct. this last function has many static data on it, its size is shown in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Aug 2016 10:57:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15490/do-i-have-ram-overflow" /><item><title>RE: do I have RAM overflow</title><link>https://devzone.nordicsemi.com/thread/59180?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 10:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2507d95a-1337-49d6-bfc1-74f073053499</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not sure if you have a stack overflow issue runtime, but according to your map-file, everything is in order, and the initial stack pointer is located in a valid area:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; __initial_sp                             0x20003c10
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you are getting a stack overflow runtime, you can view the core registers while debugging. The &amp;quot;SP&amp;quot; register shall then not go lower than address &amp;quot;&amp;amp;__initial_sp - 0x800&amp;quot;&lt;/p&gt;
&lt;p&gt;Have you enabled assertions in your code? (add &amp;quot;DEBUG&amp;quot; to your preprocessor defines)
Do you check the return error-codes from function calls?&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>