<?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>how to get the free RAM during rumtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30175/how-to-get-the-free-ram-during-rumtime</link><description>Hello, 
 
 How can I detect how much RAM is still free on the heap during runtime, without a debugger attached, just from within the application? 
 
 Cheers 
 Trax</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Feb 2018 13:56:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30175/how-to-get-the-free-ram-during-rumtime" /><item><title>RE: how to get the free RAM during rumtime</title><link>https://devzone.nordicsemi.com/thread/119754?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 13:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b68c176-a8de-44c0-885c-78701d68a01c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Heap should not be used by the SDK examples. If you use head and need to keep track of the available size, you could store the heap size in a variable and decrement/increment it when you call malloc/free to keep track of the used size.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>