<?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>nRF51822 Heap Size change from 2048 to 1024</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2102/nrf51822-heap-size-change-from-2048-to-1024</link><description>Dear Sir, 
 What is effect, if I change the Heap Size from 2048 to 1024 in arm_startup_nrf51.s file? 
 On my project, my device (nrf51822) connect iphone with ANCS, sometime I find the device nothing response, I am worried the problem is caused by change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Apr 2014 21:43:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2102/nrf51822-heap-size-change-from-2048-to-1024" /><item><title>RE: nRF51822 Heap Size change from 2048 to 1024</title><link>https://devzone.nordicsemi.com/thread/8977?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 21:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd29ddf-7b5d-4921-ac9c-30c67a497001</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;If you don&amp;#39;t use any dynamic memory you can safely set the heap size to 0.
Neither the SoftDevice nor any of the SDK examples/libraries use the heap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Heap Size change from 2048 to 1024</title><link>https://devzone.nordicsemi.com/thread/8976?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2014 16:34:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aea314f1-311d-4761-95ad-fdf0282518ba</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kwan,&lt;/p&gt;
&lt;p&gt;You can add a breakpoint in app_error_handler() so that if there is an assertion occurs, you will have the program stop at the handler, and you can find the cause of the assertion by looking at the error code, line and filename.&lt;/p&gt;
&lt;p&gt;Could you explain what did you mean by &amp;quot;Software Device use RAM&amp;quot;?
If it is the application RAM usage, you can find how much RAM used by each file by looking at the .map file generated in _build folder. Please look for &amp;quot;Execution Region RW_IRAM1&amp;quot; table.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s about the Softdevice, it&amp;#39;s 8KB RAM used by softdevice, and 2KB for the call stack. So 6KB RAM&amp;#39;s left for the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Heap Size change from 2048 to 1024</title><link>https://devzone.nordicsemi.com/thread/8975?ContentTypeID=1</link><pubDate>Wed, 09 Apr 2014 01:29:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5405f0fd-2981-43c3-ab60-a9f200b85adc</guid><dc:creator>FU HUNG KWAN</dc:creator><description>&lt;p&gt;Hi Sir,&lt;/p&gt;
&lt;p&gt;we do not use &amp;quot;any dynamic memory allocation&amp;quot; in the project.&lt;/p&gt;
&lt;p&gt;I also want to set a break point to find out the problem, just the problem should happen during recieve ANCS (iPhone). It is not easy to control the ANCS, because it is sent by iPhone.&lt;/p&gt;
&lt;p&gt;Would you let me know how to calculate Software Device use RAM memory?&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; kind regards
kwan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 Heap Size change from 2048 to 1024</title><link>https://devzone.nordicsemi.com/thread/8974?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2014 13:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86bd4907-47bb-49f2-844a-b93382433f78</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kwan,&lt;/p&gt;
&lt;p&gt;Do you use any dynamic memory allocation (malloc, realloc) in your firmware ? If you don&amp;#39;t I don&amp;#39;t think reducing the size of the heap could affect the operation.&lt;/p&gt;
&lt;p&gt;Could you add a break point in the assert handler and try to find the error code, line number and file name of the function causing issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>