<?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>Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74302/missing-mbedtls-defines-when-updating-openthread-libraries</link><description>Hello everyone 
 
 I&amp;#39;m developing a software which should use the latest OpenThread version and if possible in the form of prebuilt libraries. I followed the tipps and instructions of the Nordic Infocenter related to &amp;quot;nRF-SDK for Thread and ZigBee 4.1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Apr 2021 13:00:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74302/missing-mbedtls-defines-when-updating-openthread-libraries" /><item><title>RE: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/307500?ContentTypeID=1</link><pubDate>Thu, 29 Apr 2021 13:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2560f8cf-128b-4e05-b5e5-cb8b41ac12a2</guid><dc:creator>scnm</dc:creator><description>&lt;p&gt;Hi Charlie, i&amp;#39;ve found the error, the order of the mbedtls libraries has to be:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_shared.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_tls_vanilla.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_x509_vanilla.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_cc3xx.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libnrf_cc310_platform_0.9.4.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_oberon.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedtls_base_vanilla.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_cc3xx.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libmbedcrypto_shared.a
LIB_FILES += $(OT_ROOT)/third_party/NordicSemiconductor/libraries/nrf_security/lib/libnrf_cc310_platform_0.9.4.a&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The other libraries were commented consciously, because i changed from local libraries to the one produced by the openthread build. It works now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The orders suggested in&amp;nbsp;&lt;a href="https://github.com/openthread/ot-nrf528xx/blob/main/src/nrf52840/README.md#cryptocell-310-support"&gt;https://github.com/openthread/ot-nrf528xx/blob/main/src/nrf52840/README.md#cryptocell-310-support&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://github.com/openthread/openthread/blob/main/examples/platforms/nrf528xx/nrf52840/README.md#cryptocell-310-support"&gt;https://github.com/openthread/openthread/blob/main/examples/platforms/nrf528xx/nrf52840/README.md#cryptocell-310-support&lt;/a&gt;&amp;nbsp;won&amp;#39;t work with the current openthread commit.&lt;/p&gt;
&lt;p&gt;Still, thank you for your help,&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;scnm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/307024?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 12:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:455988e5-4826-4972-a2bf-bb0c43513d02</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi scnm,&lt;/p&gt;
&lt;p&gt;I have received your codes, but I feel not confident to help you with your new make file and folder structure. When the developer uses&amp;nbsp;&lt;span&gt;nRF SDK for their development, it is safe to copy an exiting example and modify it for your own application.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I saw that you have&amp;nbsp;made a lot of changes&amp;nbsp;or rewrite the makefile compared with the one in&amp;nbsp;nRF5_SDK_for_Thread_and_Zigbee_v4.1.0_32ce5f8\examples\thread\simple_coap_client\pca10056\blank\armgcc. The compiling issue may be caused by one of the changes. I am not sure why you&amp;nbsp;choose this way for your development even you are still a beginner of compiling tools.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I do have some findings after reading your make file, some mbedtls libraries are commented while in the example they are not, have you check them?&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;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: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/306885?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 21:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eed7165-42be-4561-adb6-fb09300f4541</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;I mean an example modified from your application that can easily recreate your issue, but it does not contain&amp;nbsp;your critical codes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/306740?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 09:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6702ecd3-969c-49c3-a523-f5d7f75aa931</guid><dc:creator>scnm</dc:creator><description>&lt;p&gt;Hi Charlie,&lt;/p&gt;
&lt;p&gt;Thanks for answering. I&amp;#39;ve used the MTD coap client example as an outline, and it worked with the OT-stack from the same commit as the SDK has.&lt;/p&gt;
&lt;p&gt;Waht do you exactly mean by dummy example?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;scnm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/306387?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 14:20:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:370311ea-e303-4d43-bb9c-3578f35c3787</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi scnm,&lt;/p&gt;
&lt;p&gt;It seems you have done some changes to the original SDK folder structure.&lt;/p&gt;
&lt;p&gt;Can you specify which example you start from? It would be great if you can provide a dummy example that I can recreate your issue based on the original &lt;span&gt;nRF-SDK for Thread and ZigBee 4.1.0.&lt;/span&gt;&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: Missing mbedtls defines when updating OpenThread libraries</title><link>https://devzone.nordicsemi.com/thread/306362?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 13:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87f62c75-3576-4e77-bbbd-496d0aae2f9b</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi scnm,&lt;/p&gt;
&lt;p&gt;I need some time to set up the environment for recreating the issue.&lt;/p&gt;
&lt;p&gt;If you just start with OpenThread, I strongly suggest you turn to the new SDK from&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_thread.html#thread"&gt;Thread — nRF Connect SDK documentation (nordicsemi.com)&lt;/a&gt;. The development and maintenance for old&amp;nbsp;&lt;span&gt;nRF-SDK for Thread and ZigBee have been stoped. You may have trouble getting support in future development.&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>