<?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>Flash, RAM and Heap Usages Calculation at Run time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90162/flash-ram-and-heap-usages-calculation-at-run-time</link><description>Hi, 
 1. How to calculate the Flash and RAM usages at runtime? I am able to do it static way but wanted to analyze this at runtime. 
 2. How to calculate the Heap usages at runtime? I have gone through some documents those referring to &amp;quot;size_t sys_heap_usable_size</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2022 12:25:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90162/flash-ram-and-heap-usages-calculation-at-run-time" /><item><title>RE: Flash, RAM and Heap Usages Calculation at Run time</title><link>https://devzone.nordicsemi.com/thread/380118?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 12:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1da500a-ae5e-4f8f-863c-51a2bf441cf3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I do not think there are any native tools that will aid you to profile/monitor memory at runtime. But you can probably profile the activity using &lt;a href="https://percepio.com/tz/tracealyzer-for-zephyr/getting-started-with-tracealyzer-for-zephyr-rtos/"&gt;traceanalyzer &lt;/a&gt;or &lt;a href="https://www.zephyrproject.org/tracing-zephyr-applications-with-segger-systemview/"&gt;systemviewer&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are hunting memory overflows then &lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kconfig/CONFIG_STACK_SENTINEL.html"&gt;CONFIG_STACK_SENTINEL &lt;/a&gt;is a nice tool to enable..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash, RAM and Heap Usages Calculation at Run time</title><link>https://devzone.nordicsemi.com/thread/380022?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 05:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca9b5ba-ee3e-43c0-a110-4cc6ba9848e9</guid><dc:creator>vim_nordic</dc:creator><description>&lt;p&gt;Hi Susheel,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you have mentioned that in&amp;nbsp; nRF5 SDK module, flash runtime check is not possible but we are using the nCS connect SDK. &lt;strong&gt;Is this possible in nCS&amp;nbsp;Connect SDK v1.9.1&lt;/strong&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash, RAM and Heap Usages Calculation at Run time</title><link>https://devzone.nordicsemi.com/thread/377846?ContentTypeID=1</link><pubDate>Wed, 20 Jul 2022 11:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0913ba2b-06be-4dcf-b023-acba0e3d65f8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This is not possible to do only using nRF5 SDK modules. Flash runtime check will not be possible when you access fds/fstorage.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;RAM runtime usage : check &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34941/ram-available-on-runtime"&gt;this&lt;/a&gt; thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>