<?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>thingy91:nRF52840 How to increase stack size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71215/thingy91-nrf52840-how-to-increase-stack-size</link><description>If you take a 1K variable to a local variable, the AP will drop. 
 Static variables do not fall off. 
 I think it&amp;#39;s a stack size issue, but how do I specify the stack size in prj.conf? 
 Also, where can I find the current stack size and stack start address</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Feb 2021 08:38:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71215/thingy91-nrf52840-how-to-increase-stack-size" /><item><title>RE: thingy91:nRF52840 How to increase stack size</title><link>https://devzone.nordicsemi.com/thread/292828?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 08:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67936e44-dd94-4eef-8aa5-85be440ceb97</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;My pleasure! Glad I could help.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91:nRF52840 How to increase stack size</title><link>https://devzone.nordicsemi.com/thread/292824?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 08:05:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b62669-b1a0-4dee-93ef-6ceaf518788a</guid><dc:creator>MakotoKoike</dc:creator><description>&lt;p&gt;By increased the stack size, it ran normally.&lt;/p&gt;
&lt;p&gt;The stack size is started by examining the address of the local variable of the main function.&lt;br /&gt;I can see the rough position.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91:nRF52840 How to increase stack size</title><link>https://devzone.nordicsemi.com/thread/292724?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 14:44:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5ca14e0-0d42-4004-968b-adf006312a64</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;To see current stack size you can use the &lt;a href="https://docs.zephyrproject.org/latest/guides/flash_debug/thread-analyzer.html#thread-analyzer"&gt;Zephyr thread analyzer module&lt;/a&gt;&amp;nbsp;and to find stack start address you can read the rom_report by issuing the command:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -t rom_report&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;after building. There is a known bug with the rom_report command that can be fixed by applying the patch attached in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68775/nrf9160-size_report-seems-to-be-broken-in-latest-ncs1-4-0/282380#282380"&gt;this thread&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy91:nRF52840 How to increase stack size</title><link>https://devzone.nordicsemi.com/thread/292663?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 12:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d81384f5-a044-4338-8e1f-47f2f669eb02</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;&lt;br /&gt;To increase the stack size you can add the following to your prj.conf:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MAIN_STACK_SIZE=&amp;lt;desired stack size&amp;gt;&lt;/pre&gt;&lt;br /&gt;I will check how you can find stack size and stack start address.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>