<?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>NRF52840：Thread communication debugging is restarted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95027/nrf52840-thread-communication-debugging-is-restarted</link><description>Hi Nordic Team： 
 I&amp;#39;m using the coap server example. I created a test task that will always send UDP messages. During the test, I found that the device would restart. Here is the test code I modified, along with the log for RTT when an abnormal restart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Feb 2023 08:59:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95027/nrf52840-thread-communication-debugging-is-restarted" /><item><title>RE: NRF52840：Thread communication debugging is restarted</title><link>https://devzone.nordicsemi.com/thread/409769?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 08:59:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ebf2699-b610-4eff-9e1b-744eae507558</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Increase the stack size for openthread by setting &lt;span&gt;&lt;code&gt;CONFIG_OPENTHREAD_THREAD_STACK_SIZE&lt;/code&gt; in your prj.conf. It is either 6240 or 3168 by default depending on whether&amp;nbsp; &lt;code&gt;CONFIG_OPENTHREAD_COMMISSIONER&lt;/code&gt; or &lt;code&gt;CONFIG_OPENTHREAD_JOINER&lt;/code&gt; are set or not. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can print the thread analyzer log in a serial terminal by including the following lines in your prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Thread analyzer
CONFIG_THREAD_ANALYZER=y
CONFIG_THREAD_ANALYZER_USE_PRINTK=y
CONFIG_THREAD_ANALYZER_AUTO=y
CONFIG_THREAD_ANALYZER_AUTO_INTERVAL=5
CONFIG_THREAD_NAME=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The lines above will enable the thread analyzer to print a report regularly to the terminal.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840：Thread communication debugging is restarted</title><link>https://devzone.nordicsemi.com/thread/408435?ContentTypeID=1</link><pubDate>Tue, 07 Feb 2023 07:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4acab60-e599-47d8-b792-ee1bf9fee161</guid><dc:creator>Lon</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply. May I ask where I should modify the size of the Thread? I used Zephyr Thread Analyzer but I don&amp;#39;t know how to print out the log. dk_set_led_toggle() is a flashing check that you can directly delete without affecting the test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840：Thread communication debugging is restarted</title><link>https://devzone.nordicsemi.com/thread/401749?ContentTypeID=1</link><pubDate>Wed, 21 Dec 2022 14:14:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e6d594f-cc34-48d7-abb9-8dbb12780c05</guid><dc:creator>Maria Gilje</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This could be a stack overflow for the thread named openthread. Try to increase the stack size for that thread. &lt;/p&gt;
&lt;p&gt;To get an overview of the stack usage for all threads you can enable the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/zephyr/services/debugging/thread-analyzer.html"&gt;Zephyr Thread Analyzer&lt;/a&gt; to get reports on the stack usage for each thread.&lt;/p&gt;
&lt;p&gt;An additional note: In your attached code on line 112 there is a declaration of dk_set_led_toggle() but I can&amp;#39;t find the implementation. &lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Maria&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>