<?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>UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104729/uart-not-working-with-nrf52840dk-and-thread-coprocessor-merged-hex-is-not-generated</link><description>Dear all, 
 I am trying to build and run the Thread coprocessor sample ( ./samples/openthread/coprocessor ) on nRF52840DK by following the instructions from here: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.2/nrf/samples/openthread/coprocessor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Oct 2023 13:03:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104729/uart-not-working-with-nrf52840dk-and-thread-coprocessor-merged-hex-is-not-generated" /><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/451077?ContentTypeID=1</link><pubDate>Wed, 18 Oct 2023 13:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c088903-cb8c-47bd-854a-e9002a389cc2</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I agree it can be a bit confusing, but I&amp;#39;m happy to hear you were able to get everything running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t hesitate to create new tickets if you have questions or face any troubles in the future.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450750?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 07:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c230cd-2610-4366-9120-dc7581d4d669</guid><dc:creator>beczike</dc:creator><description>&lt;p&gt;Dear Runar,&lt;/p&gt;
&lt;p&gt;Thanks again for the suggestion. I was under the impression that I was supposed to see some output with UART, so I just tried the steps you mentioned.&lt;/p&gt;
&lt;p&gt;For me at least, the documentation from Nordic is confusing:&lt;/p&gt;
&lt;p&gt;- The documentation (&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#openthread-posix-applications)"&gt;developer.nordicsemi.com/.../tools.html&lt;/a&gt; talks about the ot-cli, ot-ctl and ot-daemon applications&lt;/p&gt;
&lt;p&gt;- However, ot-cli is generated by compiling the OpenThread project, while ot-ctl and ot-daemon are compiled in the nRF Connect SDK&lt;/p&gt;
&lt;p&gt;Maybe the aspects above should be clarified in the documentation.&lt;/p&gt;
&lt;p&gt;As a result, the last steps, at least for me are mixing the two SDKs:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#running-the-openthread-posix-applications"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#running-the-openthread-posix-applications&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In any case, I have tried using the ot-cli, with the following output:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bela@bgenge-l:~/openthread$ sudo ./build/posix/src/posix/ot-cli &amp;#39;spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=1000000&amp;#39; --verbose&lt;br /&gt;./build/posix/src/posix/ot-cli[4767]: Running OPENTHREAD/d62167ee3; POSIX; Oct 17 2023 09:01:12 &lt;br /&gt;./build/posix/src/posix/ot-cli[4767]: Thread version: 4 &lt;br /&gt;./build/posix/src/posix/ot-cli[4767]: Thread interface: &amp;nbsp;&lt;br /&gt;./build/posix/src/posix/ot-cli[4767]: RCP version: OPENTHREAD/d5a6630a8; Zephyr; Oct 17 2023 10:06:07 &lt;br /&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then, as a next step I was also able to&amp;nbsp;run the OTBR as documented here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#running-otbr-using-docker"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#running-otbr-using-docker&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am also able to access the Web interfave, and getting OK for the Thread Border Agent:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Oct 17 07:20:32 70f938c51dc3 otbr-agent[186]: [INFO]-BA------: Start Thread Border Agent: OK&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, at the end, I think that I was a bit confused by the documentation, but now I also managed to run the&amp;nbsp; OTBR, so I guess everything is ok.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your help, things are much clearer now for me &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450571?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 12:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa04fc59-2cc1-4475-bd14-767f1a901a9a</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Did you do the following steps from the last link:&lt;/p&gt;
&lt;p&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/pastedimage1697460136733v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450542?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 11:59:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f665dd5e-47f1-40c9-956c-16817231b6fa</guid><dc:creator>beczike</dc:creator><description>&lt;p&gt;Thanks again for the details, however, I do not see anything new. Here are more details on the steps that I perform:&lt;/p&gt;
&lt;p&gt;Build command:&amp;nbsp;&lt;span&gt;west build -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG:STRING=&amp;quot;overlay-logging.conf&amp;quot;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Program command:&amp;nbsp;&lt;span&gt;./nrfjprog -f nrf52 -s 683488383 &amp;nbsp;--verify --chiperase --program ./zephyr.hex --reset&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then check communication, but without anything showing up on the CLI:&amp;nbsp;minicom -D /dev/ttyACM0 -b 115200&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Welcome to minicom 2.9 &lt;br /&gt; &lt;br /&gt;OPTIONS: I18n &amp;nbsp;&lt;br /&gt;Compiled on Sep 23 2023, 19:55:08. &lt;br /&gt;Port /dev/ttyACM0, 14:56:32 &lt;br /&gt; &lt;br /&gt;Press CTRL-A Z for help on special keys &lt;br /&gt; &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450536?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 11:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97feb72b-b157-44b0-9847-89cb273a16a2</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, I switched things up, you need to include the overlay-logging.conf. Add the following to your build command &amp;quot;-DOVERLAY_CONFIG:STRING=&amp;quot;overlay-logging.conf&amp;quot;&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Logging goes over RTT and not UART, and if you want to interact with the RCP you have to run a Openthread POSIX&amp;nbsp; application&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/thread/tools.html#configuring-a-radio-co-processor"&gt;developer.nordicsemi.com/.../tools.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450526?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 11:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529966f3-5025-4d48-9b40-ff0b94ead520</guid><dc:creator>beczike</dc:creator><description>&lt;p&gt;Thank you for the quick response.&lt;/p&gt;
&lt;p&gt;To build the sample I ran: w&lt;span&gt;est build -b nrf52840dk_nrf52840&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the sample folder I could not find a particular overlay for this board. This is the contents of my sample folder:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;boards &amp;nbsp;CMakeLists.txt &amp;nbsp;Kconfig &amp;nbsp;overlay-debug.conf &amp;nbsp;overlay-logging.conf &amp;nbsp;overlay-usb.conf &amp;nbsp;overlay-vendor_hook.conf &amp;nbsp;prj.conf &amp;nbsp;README.rst &amp;nbsp;sample.yaml &amp;nbsp;src &amp;nbsp;usb.overlay&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please provide an example build instruction that you used?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART not working with nRF52840DK and Thread coprocessor (merged.hex is not generated)</title><link>https://devzone.nordicsemi.com/thread/450525?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 11:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5cdf91c-a360-46c9-a3ae-d0f24a4b2a0f</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is example should not build any merged hex as there no other image. &lt;span&gt;&lt;span dir="ltr"&gt;The sample demonstrates using a co-processor target on the MCU to communicate with `ot-cli` on Unix-like operating system.&lt;br /&gt; According to the co-processor architecture, the MCU part must cooperate with user higher layer process to establish the complete full stack application.&lt;br /&gt; The sample shows how to set up the connection between the co-processor and the host.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did you build it with the overlay for the nRF-52840dk? I tested it and I had UART working&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>