<?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>Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78803/generate-ncp-firmware-for-uart-with-uart-pins-modified</link><description>I am using Nordic&amp;#39;s NRF_SDK_For_Thread_and_Zigbee_4.1.0. 
 In that example/thread/ncp, I want to build NCP firmware for uart. 
 Original uart pins for rx and tx are 8 and 6. 
 While I want to build that firmware for pins 26 and 6. 
 UART Rx is 26 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 11:27:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78803/generate-ncp-firmware-for-uart-with-uart-pins-modified" /><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/332121?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 11:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5694bf9d-24a1-4d70-9745-e13bb8a6e083</guid><dc:creator>Lukasz Duda</dc:creator><description>&lt;p&gt;If you need the newest OpenThread version, I would strongly recommend trying to port your application to nRF Connect SDK. The nRF5 SDK for T&amp;amp;Z is currently maintained but, will not be released with new features.&lt;/p&gt;
&lt;p&gt;In nRF Connect SDK you can also use the OT API directly, but there is no migration guidelines, as our new SDK is completely different from the previous one.&lt;/p&gt;
&lt;p&gt;You can check the following webinar:&amp;nbsp;&lt;a href="https://webinars.nordicsemi.com/developing-thread-products-with-nrf-1"&gt;https://webinars.nordicsemi.com/developing-thread-products-with-nrf-1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are new to Zephyr and nRF Connect SDK itself, you will find many more interesting videos there as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/331277?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:51:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ab233c-9fb9-4cd7-9f92-ad0c9ae5d88e</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/lududa"&gt;Lukasz Duda&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for clarifying my doubt.&lt;/p&gt;
&lt;p&gt;I have done this and the NCP image is working now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But that open thread commit is more than a year old.&lt;/p&gt;
&lt;p&gt;Since then, there are multiple improvements in openthread repository, and I want to port my current application on the latest openthread commit.&lt;/p&gt;
&lt;p&gt;Kindly guide me through the process for the same.&lt;/p&gt;
&lt;p&gt;Bcoz when I applied the process mentioned&amp;nbsp;&lt;a title="here" href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fthread_ot_libraries_building.html&amp;amp;cp=8_3_2_1_4"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v4.1.0%2Fthread_ot_libraries_building.html&amp;amp;cp=8_3_2_1_4&lt;/a&gt;&amp;nbsp;, my application won&amp;#39;t compile.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there are many API related error like below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;../../../../../nrf_sdk_thread/components/thread/utils/thread_utils.c: In function &amp;#39;platform_init&amp;#39;:
../../../../../nrf_sdk_thread/components/thread/utils/thread_utils.c:129:5: error: implicit declaration of function &amp;#39;otHeapSetCAllocFree&amp;#39;; did you mean &amp;#39;otHeapCAlloc&amp;#39;? [-Werror=implicit-function-declaration]
     otHeapSetCAllocFree(ot_calloc, ot_free);
     ^~~~~~~~~~~~~~~~~~~
     otHeapCAlloc
../../../../../nrf_sdk_thread/components/thread/utils/thread_utils.c: In function &amp;#39;thread_cli_init&amp;#39;:
../../../../../nrf_sdk_thread/components/thread/utils/thread_utils.c:258:5: error: implicit declaration of function &amp;#39;otCliUartInit&amp;#39;; did you mean &amp;#39;otCliInit&amp;#39;? [-Werror=implicit-function-declaration]
     otCliUartInit(mp_ot_instance);
     ^~~~~~~~~~~~~
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;How to port my current application on the latest openthread stack or nrf connect SDK ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/331271?ContentTypeID=1</link><pubDate>Mon, 27 Sep 2021 10:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1f6ed3c-3251-450d-932b-32e4d114656b</guid><dc:creator>Lukasz Duda</dc:creator><description>&lt;p&gt;Hello Bhumika,&lt;br /&gt;&lt;br /&gt;As I mentioned above, you have to use the same OpenThread commit as was used in the nRF5 SDK for the T&amp;amp;Z release.&lt;br /&gt;&lt;br /&gt;The ot-nrf528xx repository was created just recently and is not compatible with nRF5 SDK for T&amp;amp;Z.&lt;br /&gt;&lt;br /&gt;So please just clone OT repo, checkout to the&amp;nbsp;c6a258e3a5bd90aa26d8245c435c0ae5797027f4 commit and generate libraries according to the documentation.&lt;/p&gt;
&lt;p&gt;I would then recommend checking with default UART pins that all works correctly and only then configure the pins and regenerate libraries one more time.&lt;br /&gt;&lt;br /&gt;Please let me know about the progress.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/328813?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 12:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a5fed18-bc49-440a-b66e-8c5e185b19a6</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/lududa"&gt;Lukasz Duda&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have generated a new image for NCP from the latest openthread directory, i.e., &amp;quot;ot-nrf528xx&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have followed the steps provided on&amp;nbsp;&lt;a title="Openthread-nrf52840-build-procedure" href="https://github.com/openthread/ot-nrf528xx/blob/main/src/nrf52840/README.md"&gt;https://github.com/openthread/ot-nrf528xx/blob/main/src/nrf52840/README.md&lt;/a&gt;&amp;nbsp;.&lt;/p&gt;
&lt;p&gt;Also, I have made the following changes in the transport-config.h file at ot-nrf528xx/src/nrf52840:&lt;/p&gt;
&lt;p&gt;1.&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;#ifndef &lt;/span&gt;UART_PIN_TX&lt;br /&gt;&lt;span&gt;#define &lt;/span&gt;UART_PIN_TX &lt;span&gt;4&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#endif&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;2.&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;#ifndef &lt;/span&gt;UART_PIN_RX&lt;br /&gt;&lt;span&gt;#define &lt;/span&gt;UART_PIN_RX &lt;span&gt;26&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#endif&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;3.&lt;/pre&gt;
&lt;pre&gt;&lt;span&gt;#ifndef &lt;/span&gt;UART_HWFC_ENABLED&lt;br /&gt;&lt;span&gt;#define &lt;/span&gt;UART_HWFC_ENABLED &lt;span&gt;0&lt;br /&gt;&lt;/span&gt;&lt;span&gt;#endif&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have changed TX, RX pin numbers as per my custom hardware. and disabled HWFC&amp;nbsp; and generated the new image.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;On flashing that image I am able to communicate with the border router but the NCP state is constantly &amp;quot;offline&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_09_2D00_09-at-5.34.41-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;Can you help me in debugging this issue? What is causing the NCP state in offline mode?&lt;/p&gt;
&lt;p&gt;I have checked everything on my side but couldn&amp;#39;t find any reasonable solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/326873?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 04:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3dd459a-daaa-45fe-b6eb-8f73d382b0b4</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Thanks for the reply. I will do this step and let you know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Generate NCP firmware for UART with UART pins modified</title><link>https://devzone.nordicsemi.com/thread/326861?ContentTypeID=1</link><pubDate>Thu, 26 Aug 2021 19:17:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd6e672-5d8d-42f0-b5c1-6a631a020726</guid><dc:creator>Lukasz Duda</dc:creator><description>&lt;p&gt;Hello @Bhumika,&lt;br /&gt;&lt;br /&gt;First of all in case you starting the new project I just want to recommend moving to our new SDK called nRF Connect SDK where you can find the NCP example as well -&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/coprocessor/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/coprocessor/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The nRF5 SDK for Thread and Zigbee is still supported but it is only in a maintenance mode, and OpenThread there is pretty much old there.&lt;/p&gt;
&lt;p&gt;In case of nRF5 SDK for Thread and Zigbee the UART platform is placed in the pre-compiled OpenThread library, and so in order to change the pins, you need to regenerate libraries and replace them with ones from nRF5 SDK.&lt;/p&gt;
&lt;p&gt;The instruction on how to generate libraries can be found here:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/coprocessor/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/openthread/coprocessor/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please however ensure that you checkout to the same revision of OpenThread from which the SDK was released:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;git checkout c6a258e3a5bd90aa26d8245c435c0ae5797027f4&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;You can find the UART configuration in this file (and analogously for nRF52833 and nRF52811) -&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/blob/c6a258e3a5bd90aa26d8245c435c0ae5797027f4/examples/platforms/nrf528xx/nrf52840/transport-config.h"&gt;https://github.com/openthread/openthread/blob/c6a258e3a5bd90aa26d8245c435c0ae5797027f4/examples/platforms/nrf528xx/nrf52840/transport-config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After libraries will be generated, you don&amp;#39;t need to copy them all, it&amp;#39;s enough to copy &lt;span&gt;&lt;code&gt;libopenthread-nrf528xx-transport.a&lt;/code&gt; (in case you use GCC).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>