<?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 optimal buffer size on nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102950/how-to-get-the-optimal-buffer-size-on-nrf-connect-sdk</link><description>We working on nRFConnect SDK + nRF5340. 
 I would like to know how to get appropriate values for various buffer sizes. for example, CONFIG_MAIN_STACK_SIZE CONFIG_HEAP_MEM_POOL_SIZE CONFIG_MBEDTLS_HEAP_SIZE CONFIG_NRF_RPC_THREAD_STACK_SIZE 
 How can I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Aug 2023 02:00:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102950/how-to-get-the-optimal-buffer-size-on-nrf-connect-sdk" /><item><title>RE: How to get the optimal buffer size on nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/442400?ContentTypeID=1</link><pubDate>Tue, 22 Aug 2023 02:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d52b8499-04e5-4045-bb62-87e3bd948f69</guid><dc:creator>loquat</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get the optimal buffer size on nRF Connect SDK.</title><link>https://devzone.nordicsemi.com/thread/442062?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 11:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85241df6-4e18-4022-91a3-6d23a363e2be</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To evaluate stack usage for your threads, you can use this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html"&gt;https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that this does not print your heap usage. Heap evaluation is unfortunately not automated, and has to be manually checked.&lt;/p&gt;
&lt;p&gt;You can setup a heap listener for the zephyr kernel heap:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/kernel/memory_management/heap.html#heap-listener"&gt;https://docs.zephyrproject.org/latest/kernel/memory_management/heap.html#heap-listener&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>