<?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>Memory Allocation and Heap Size nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64927/memory-allocation-and-heap-size-nrf52840</link><description>Hi! I&amp;#39;m working with an nRF52840 SOC using SDK 17 and Keil. When I try to allocate memory to a structure of size 8388 bytes, malloc always returns 0. I&amp;#39;ve set __HEAP_SIZE=16384 so it shouldn&amp;#39;t be the problem. I&amp;#39;ve also tried and configured the memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Aug 2020 13:53:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64927/memory-allocation-and-heap-size-nrf52840" /><item><title>RE: Memory Allocation and Heap Size nRF52840</title><link>https://devzone.nordicsemi.com/thread/265354?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 13:53:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e60e890e-cf6c-459a-98c6-4356212497a9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that it works now. Yes, we could have made this more obvious by not duplicating the same symbol under the C/C++ tab. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Allocation and Heap Size nRF52840</title><link>https://devzone.nordicsemi.com/thread/265350?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 13:48:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25939e9e-ac92-4c41-bfc8-636a07ea689c</guid><dc:creator>IstvanS</dc:creator><description>&lt;p&gt;Thanks, it worked! I changed the heap size under the &amp;quot;C/C++&amp;quot; tab, which didn&amp;#39;t work. Good to know you have to change it under &amp;quot;Asm&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Memory Allocation and Heap Size nRF52840</title><link>https://devzone.nordicsemi.com/thread/265340?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 13:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:360deede-27c7-4382-949f-7d16d6eb9c46</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please make sure the *asm* symbol is updated, then verify that this setting gets reflected in the *.map file as shown below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-acaa85235cf940b883e5753dc1b8a99b/pastedimage1597843200562v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>