<?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>Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11335/having-problem-of-region-ram-overflowed-with-stack</link><description>Hi, current i&amp;#39;m writing a program in nordic nrf51822 chip and I facing the problem of region RAM overflowed with stack after adding the BLE code as shown below : 
 //***********************************************************************************</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 May 2016 12:36:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11335/having-problem-of-region-ram-overflowed-with-stack" /><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42630?ContentTypeID=1</link><pubDate>Tue, 17 May 2016 12:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4412c23e-e1e7-4e1a-8e01-a3686ea08602</guid><dc:creator>Elm</dc:creator><description>&lt;p&gt;For GCC, is the line correct? Should it not be LDFLAGS instead of ASMFLAGS? I guess it is the linker that wants this line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42629?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 12:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6572f69c-0193-4288-9979-c5460ee31704</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Click the circle with check mark(turns green when you hower the mouse over it to) the left of the answer below.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42628?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 11:49:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0e056b5-9167-4862-82be-66431955cd0a</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;how to mark?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42627?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 11:46:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321c7d80-8ad0-4ff2-af04-2f1450e44300</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great! Could you mark the answer below as correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42626?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 11:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2146009-cf27-4452-b8a9-5941453ac6eb</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;Yes. Thanks. now i facing another problem and i posted it to the forum&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42625?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 11:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9147eb23-27a8-4f60-b9c0-f3f69f3f3765</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Did it fix the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42624?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 10:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c39f525a-260c-412f-8d9e-5d8c6cfd3745</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;Thanks a lot, Bjorn.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42622?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 08:46:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b2f9e3-7008-4294-8c5e-d6d993ba5c35</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Neither the SoftDevice or the SDK does not use Heap. As long as you are not using dynamic memory allocation ( i.e. malloc ) you can reduce the heap size to 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42623?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 03:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7668e019-8657-4419-a10b-40c647ef2f01</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;Should I reduce the heap size straight away from 256 to 0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42631?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 12:48:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b537c6a-30fa-40cc-8981-b65ad6341e86</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The heap size can be changed by editing line 59 in the &lt;a href="https://github.com/RedBearLab/nRF51822-Arduino/blob/S130/arduino-1.6.x/hardware/RBL/RBL_nRF51822/cores/RBL_nRF51822/startup_NRF51822.S"&gt;startup_NRF51822.S&lt;/a&gt; file from&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    .equ    Heap_Size, 256
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    .equ    Heap_Size, 0
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42621?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 03:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7599f66e-76d2-40c7-a103-eecf622b8048</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;No. I&amp;#39;m using compiling the code in Arduino IDE together with this driver &lt;a href="https://github.com/RedBearLab/nRF51822-Arduino"&gt;github.com/.../nRF51822-Arduino&lt;/a&gt; and upload to nrf51822 module. Is there any way to change the heap size?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having problem of region RAM overflowed with stack</title><link>https://devzone.nordicsemi.com/thread/42620?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2016 12:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c51c43fc-75a4-46fc-b0d8-5d57c6324992</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you developing using Keil or GCC?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Keil:&lt;/strong&gt; Try adding&lt;code&gt;__HEAP_SIZE = 0&lt;/code&gt; to your Preprocessor Symbols ( Options for Target &amp;gt;&amp;gt; C/C++ &amp;gt;&amp;gt; Preproccesor Symbols).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GCC:&lt;/strong&gt; Add &lt;code&gt;ASMFLAGS += -D__HEAP_SIZE=0&lt;/code&gt; to your linker flags in the Makefile&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>