<?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>Debug Openthread example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93608/debug-openthread-example</link><description>uart:~$ *** Booting Zephyr OS build v3.1.99-ncs1 *** 
 Just build standard example for openthread , like coap_sever. 
 Application rebooted after openthread are fully started 
 [00:00:34.609,619] &amp;lt;err&amp;gt; mpsl_init: MPSL ASSERT: 112, 2728 [00:00:34.609,619</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Nov 2022 10:00:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93608/debug-openthread-example" /><item><title>RE: Debug Openthread example</title><link>https://devzone.nordicsemi.com/thread/394631?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 10:00:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51a0617e-d630-4f65-8648-d97869467350</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Volodymyr,&lt;/p&gt;
&lt;p&gt;I am not sure which kind of issue you want to debug with. Different from bare&amp;nbsp;metal, when you develop an application with Zephyr RTOS, there might be several threads on the backend. It will cause unpredictable issues when you set a stop point on the current thread, especially for wireless communication protocol stacks like OpenThread which has time-sensitive&amp;nbsp;interruption handlers.&lt;/p&gt;
&lt;p&gt;It is common to enable the debug configuration and read the log file when you encounter one issue to understand what happens with the communication flow or application behaviour.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Openthread example</title><link>https://devzone.nordicsemi.com/thread/394531?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 17:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edee336e-c29e-4d07-8846-65c378edc194</guid><dc:creator>VolodymyrM</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the update. It works fine when you just run an example without debugging, but when you start j-tag debugger it crashes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Step to reproduce:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;1. Start the debugger with j-tag link&lt;/p&gt;
&lt;p&gt;&amp;nbsp;2. Set breakpoint on&amp;nbsp;light_request_handler&lt;/p&gt;
&lt;p&gt;&amp;nbsp;3 Debug step-by-step&lt;/p&gt;
&lt;p&gt;&amp;nbsp;4. Crash happens&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Volodymyr.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Openthread example</title><link>https://devzone.nordicsemi.com/thread/394359?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 10:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3263f58-dfe9-48cc-adb9-106a12dfd89f</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Volodymyr,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I built the sample&amp;nbsp;C:\NCS\v2.1.1\nrf\samples\openthread\coap_server under NCS v2.1.1 with default settings&amp;nbsp;and everything looks fine. The firmware is attached.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667815342010v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v3.1.99-ncs1  ***


[00:00:00.527,435] &amp;lt;inf&amp;gt; [N] Mle-----------: Attach attempt 1, AnyPartition 
[00:00:07.034,057] &amp;lt;inf&amp;gt; [N] RouterTable---: Allocate router id 36
[00:00:07.034,423] &amp;lt;inf&amp;gt; [N] Mle-----------: RLOC16 fffe -&amp;gt; 9000
[00:00:07.034,545] &amp;lt;inf&amp;gt; [N] Mle-----------: Role detached -&amp;gt; leader
[00:00:07.082,946] &amp;lt;inf&amp;gt; [N] Mle-----------: Leader partition id 0x7c70ac99
uart:~$ &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ncs211_5F00_coap_5F00_server.hex"&gt;devzone.nordicsemi.com/.../ncs211_5F00_coap_5F00_server.hex&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Charlie&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>