<?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>OpenThread logging enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68793/openthread-logging-enable</link><description>Hello, 
 I am developing thread network and i am building on top of mqttsn_sleepy_publisher example. But I have problem to enable RTT logging (UART not available) for thread stack. RTT logging for app works (using NRF_LOG_INFO). I see logs within RTT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 06 Dec 2020 21:02:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68793/openthread-logging-enable" /><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/283433?ContentTypeID=1</link><pubDate>Sun, 06 Dec 2020 21:02:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:561fd544-f61e-458f-8015-564af2597ae0</guid><dc:creator>oto313</dc:creator><description>&lt;p&gt;Ok so I solved it. I wrote cmake scripts to compile openthread and integrated it into my project and logs came up (with #define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG in config file of openthread)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/282759?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 20:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a4ff3a1-7133-48ba-b621-f58b88258e26</guid><dc:creator>oto313</dc:creator><description>&lt;p&gt;Same result. built with flags make -f examples/Makefile-nrf52840 BORDER_AGENT=1 BORDER_ROUTER=1 COAP=1 COMMISSIONER=1 DISABLE_BUILTIN_MBEDTLS=1 DNS_CLIENT=1 DIAGNOSTIC=1 EXTERNAL_HEAP=1 JOINER=1 LINK_RAW=1 MAC_FILTER=1 MTD_NETDIAG=1 SERVICE=1 UDP_FORWARD=1 ECDSA=1 SNTP_CLIENT=1 COAPS=1 DHCP6_SERVER=1 DHCP6_CLIENT=1 USB=1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/282620?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 10:14:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1864008-a128-46ce-985f-6f357dfa36e6</guid><dc:creator>oto313</dc:creator><description>&lt;p&gt;Ok I will try it. Yeah I am using raspberry like device with nrf52840 dongle for border gateway. My nrf52840 device (dongle or my custom pcb with nrf52840) shows that commisioning is done. But when I enter ot-ctl scan command. The commisioning process runs again (led starts blinking) and the command doesnt show any discovered device. I used prebuilt images for nrf52840 dongle ncp driver and for nrf52840 sleepy mqtt publisher. Nothing changed and it doesnt works. I see no reason from logs on gateway, so I need to see device log, or add support for openthread debugging&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/282598?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 08:26:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25de695b-81f6-4e4d-aae6-c59753c00341</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you try to build the library without any changes? Try to do so and check if you get the same hardfault then before applying your changes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;May I ask what you need the openthread logs for? Do you experience any issues with the openthread network?&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/282556?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 21:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9b13e62-427e-4170-adc5-4a1bc2f82a46</guid><dc:creator>oto313</dc:creator><description>&lt;p&gt;Ok thanks. I didnt know i had to rebuild openthread.&lt;/p&gt;
&lt;p&gt;I tried your advice, cloned repo from github, checkouted commit c6a258e3a5bd90aa26d8245c435c0ae5797027f4. Then I built it inside docker container based on &lt;a href="https://openthread.io/guides/build"&gt;https://openthread.io/guides/build&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fthread_ot_libraries_building.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fthread_ot_libraries_building.html&lt;/a&gt; . I renamed &lt;code&gt;libopenthread-nrf528xx-transport.a&lt;/code&gt; to &lt;code&gt;libopenthread-nrf528xx-transport-usb.a&lt;/code&gt; and copied to folder external\openthread\lib\nrf52840\gcc inside sdk folder.&lt;/p&gt;
&lt;p&gt;btw: I added to top of the file (after include guard) openthread\examples\platforms\nrf528xx\nrf52840\openthread-core-nrf52840-config.h following line&lt;/p&gt;
&lt;p&gt;#define OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_DEBG&lt;/p&gt;
&lt;p&gt;Build completed successfuly, but program is stuck inside hardfault handler, caused by mbedtls_internal_aes_encrypt.&lt;/p&gt;
&lt;p&gt;Yeah sorry, the link meant to be to sdk 4.1.0&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://i.imgur.com/63NApzp.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OpenThread logging enable</title><link>https://devzone.nordicsemi.com/thread/282438?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 12:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a49cd2-2f20-42f3-861c-89e311174794</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. Where did you find this file? Online on Github? Where did you put the file?&lt;/p&gt;
&lt;p&gt;As you say, no file in your project probably points to this file. If you downloaded it from github, then this needs to be used to re-build the openthread library.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know whether you meant to point to the SDKv3.2.0 for Thread and Zigbee. If you use that version, that is fine. Look at the file found in SDK\external\openthread\project\readme.txt&lt;/p&gt;
&lt;p&gt;It says what tag the openthread stack is built on. Download the same version, and use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.1.0/thread_ot_libraries_building.html"&gt;this guide to re-build the openthread libraries&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>