<?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 monitor the size of a thread stack in ncs?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82034/how-to-monitor-the-size-of-a-thread-stack-in-ncs</link><description>In ncs1.7.1, I’m struggling with a problem about hard fault on nRF9160, but I have no idea to slove the problem. 
 nRF52840 transmits data to nRF9160 via UART0, the baudrate is 1000000 with flow control, After running a few minutes, nRF9160 crash. 
 The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Nov 2021 13:06:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82034/how-to-monitor-the-size-of-a-thread-stack-in-ncs" /><item><title>RE: How to monitor the size of a thread stack in ncs?</title><link>https://devzone.nordicsemi.com/thread/340544?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 13:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb1d41b8-1b7e-494d-b39d-d32389c954c7</guid><dc:creator>Deang</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/kme"&gt;Kenneth&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thanks you.&lt;/p&gt;
&lt;p&gt;I got the reason nRF9160 occurred crash, it was re-free memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to monitor the size of a thread stack in ncs?</title><link>https://devzone.nordicsemi.com/thread/340537?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 12:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:256c6408-3f6f-471d-9394-4d5ac271da54</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Here are the config options I typically use:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# Debugging configuration&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_NAME=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_AUTO=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_ANALYZER_USE_PRINTK=y&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;# add asserts&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ASSERT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ASSERT_VERBOSE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ASSERT_NO_COND_INFO&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_ASSERT_NO_MSG_INFO&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_RESET_ON_FATAL_ERROR&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_THREAD_NAME&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>