<?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 increase stack memory allocation to number of threads in RTX?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12674/how-to-increase-stack-memory-allocation-to-number-of-threads-in-rtx</link><description>Hello All, 
 I am using nRF51822 with SDKv10.0.0 and s110 soft device with RTX os. My project have 5 different threads with 1000 bytes of memory is needed in each thread. While RTX_Conf_CM.c file have settings to run only 3 concurrent threads and only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Mar 2016 12:24:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12674/how-to-increase-stack-memory-allocation-to-number-of-threads-in-rtx" /><item><title>RE: How to increase stack memory allocation to number of threads in RTX?</title><link>https://devzone.nordicsemi.com/thread/48145?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2016 12:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17680453-26e3-4cc5-97ec-1b74bcda2bbf</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Ethan&lt;/p&gt;
&lt;p&gt;If you want to have 5 threads each with 1000 bytes, then I suspect it is hard to execute that on a nRF51822 QFAA (16kB RAM), but should be well possible with nRF51822 QFAC (32kB RAM). When I configure the ble_app_hrs_rtx application to have 5 threads and 1000 bytes each I get around 11kB of RAM used. The S110 softdevice uses 8kB, so total use should be 8kB+11kB = 19kB.&lt;/p&gt;
&lt;p&gt;If you have an application with smaller profile than the ble_app_hrs_rtx sample application, I suspect it should &lt;a href="https://devzone.nordicsemi.com/question/12524/ram-usage-with-s110-support/"&gt;consume less RAM&lt;/a&gt;, but perhaps still over 16kB, Im not sure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>