<?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>Problem with nRF53dk Thread CLI example and some feedback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78799/problem-with-nrf53dk-thread-cli-example-and-some-feedback</link><description>Hi Nordic Semiconductor! 
 
 Over the years I&amp;#39;ve been using your development kits, some days ago I got the nRF5340-DK and started on a new computer. Normally I dive into the PS and start on a blank project. This time I thought I would at the top instead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Aug 2021 11:42:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78799/problem-with-nrf53dk-thread-cli-example-and-some-feedback" /><item><title>RE: Problem with nRF53dk Thread CLI example and some feedback</title><link>https://devzone.nordicsemi.com/thread/325941?ContentTypeID=1</link><pubDate>Fri, 20 Aug 2021 11:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e06a7f32-3942-40e4-b6f7-5ad41682f571</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Peter&lt;/p&gt;
&lt;p&gt;Thank you or the feedback, I will address it in short, then go on to answering your questions.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Downloaded nRF Connect, installed the Toolchain Manager. Installed nRF Connect SDK v1.6.1, changed the path to my own liking (D:\Program Files\NordicSemiconductor).&lt;/p&gt;
&lt;p&gt;When trying to compile the Thread CLI example I get the following error &amp;quot;create_nordic_project.py failed (1)&amp;quot; looking at the output it looks like part of the script can&amp;#39;t handle the space in &amp;quot;Program Files&amp;quot;.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;The nRF Connect SDK Toolchain cannot be located in a path containing space(&amp;quot; &amp;quot;). This should probably be a warning message before you choose a path. I will suggest it to the developers.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Uninstalling and reinstalling nRF Connect SDK v1.6.1 to a new path (D:\Program\NordicSemi).&lt;/p&gt;
&lt;p&gt;Trying a new to compile the Thread CLI example, now it can&amp;#39;t compile a crypto something file.. reading on the web and looking at the whole path, it is too long, something like 274 chars (where I&amp;#39;ve given around 25 of them..).&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;This is a known issue. As far as I know, it is due to a limitation in windows, and not the nRF Connect SDK.&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Once again reinstalled nRF Connect SDK v1.6.1 to a new path (C:\N), it now compiles and builds the example. I&amp;#39;m following the &amp;quot;Developing Thread Products using nRF Connect SDK&amp;quot;. Suddenly the tutorial author has two PuTTY consoles open connected to the nRF. When I plug the DK into my computer I get three COM-ports, and none if I plug it into the “nRF USB”-connector.. and no PuTTY connection information. After some trial and error and looking at the web I get it right.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;For the three TTY ports, see Q2(below).&amp;nbsp; The nRF USB(J3) connector connects (almost) directly to the nRF, while the J2 USB Connects to the PCA10095 - Interface MCU. By default, debugging UART and goes trough the J2 USB connector. I believe this is the default connector used in most tutorials as well.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Q1&lt;/strong&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;1.&lt;/p&gt;
&lt;p&gt;When I boot my DK I get a “uart” prompt on my comport I can communicate with the DK and I can see a “ot” command in the list of commands. When I try for example “ot help” it freezes, nothing happens, and I must reboot my DK. I thought this example should work out of the box? I.e. I have done nothing to the code (following the &lt;span&gt;&amp;quot;Developing Thread Products using nRF Connect SDK&amp;quot;&lt;/span&gt; youtube video).&lt;/p&gt;[/quote]
&lt;p&gt;The tutorial would have worked fine for the nRF52840, but there is an extra step you need to do for the nRF5340.&lt;/p&gt;
&lt;p&gt;The nRF5340 has two different cores. One network core and one application core. To use thread, the application running on the application will use the network core for thread or multi protocol communication. Your network core is likely empty, and when the &amp;quot;ot help&amp;quot; command tries to communicate with the network core, the program freezes.&lt;/p&gt;
&lt;p&gt;To fix this, follow the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/ug_nrf5340.html#programming-the-network-sample-from-ses"&gt;Working with nRF53 Series&lt;/a&gt; howto on Using SEGGER Embedded Studio. &lt;br /&gt;When you get to the part where you need to program the network core, see either &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/ug_nrf5340.html#ieee-802-15-4-thread-and-zigbee"&gt;IEEE 802.15.4 (Thread and Zigbee)&lt;/a&gt; or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/ug_nrf5340.html#multiprotocol-thread-or-zigbee-in-combination-with-bluetooth-le"&gt;Multiprotocol (Thread or Zigbee in combination with Bluetooth LE)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;Q2&lt;/strong&gt;&lt;/p&gt;
[quote user=""]&lt;p&gt;2.&lt;/p&gt;
&lt;p&gt;What are the othe two COM-ports for? If I remember correctly the first time I plugged the DK in COM3 (the others were COM4 and COM5) was the working one, last time it was COM5 that was working.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;The three different COM-ports are explained in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/ug_nrf5340.html#getting-logging-output"&gt;Getting logging output&lt;/a&gt; section.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I hope this was helpful, please let me know if anything is still unclear or you have more questions.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>