<?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>Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86534/enable-mbedtls-debugging-nordic-provided-security-backend-for-coap-secure-via-openthread-on-nrf5340</link><description>Goal 
 Hi guys, 
 is there an option to enable MBEDTLS debugging as with the CONFIG_MBEDTLS_DEBUG_LEVEL =4 for the MBEDTLS_BUILTIN? I am trying to setup a DTLS client based in order to establish a CoAP Secure Session via Openthread to a Borderrouter and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2022 10:31:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86534/enable-mbedtls-debugging-nordic-provided-security-backend-for-coap-secure-via-openthread-on-nrf5340" /><item><title>RE: Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/thread/365555?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 10:31:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c130370-5d17-4ce6-82c0-8322128326fb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like MBEDTLS_BUILTIN is disabled by MBEDTLS_LIBRARY_NRF_SECURITY when building for nRF5340. I see this warning in the build log when building your project with the suggested build command (I also enabled the symbol in &lt;a href="https://gitlab.com/dev2409/nRF5430/-/blob/master/nrf5340/devzone/overlay-ot.conf#L8"&gt;the overlay&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: The choice symbol MBEDTLS_BUILTIN (defined at
C:/ncs/v1.9.1/zephyr/modules/mbedtls/Kconfig:27, C:/ncs/v1.9.1/zephyr/modules/mbedtls/Kconfig:27,
modules\mbedtls\Kconfig:27) was selected (set =y), but MBEDTLS_LIBRARY_NRF_SECURITY (defined at
C:/ncs/v1.9.1/nrf/Kconfig.nrf:19) ended up as the choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_MBEDTLS_BUILTIN.html and/or look up
MBEDTLS_BUILTIN in the menuconfig/guiconfig interface. The Application Development Primer, Setting
Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
too.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.0/subsys/net/openthread/Kconfig.defconfig#L54"&gt;default security library option&lt;/a&gt;&amp;nbsp;is selected by the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.0/subsys/net/openthread/Kconfig#L24"&gt;OpenThread Kconfig&lt;/a&gt; in nRF Connect SDK, and is set to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/kconfig/CONFIG_OPENTHREAD_NRF_SECURITY_CHOICE.html"&gt;OPENTHREAD_NRF_SECURITY_CHOICE&lt;/a&gt;. If you want to use the Zephyr built-in MBEDTLS library, you can try to set&amp;nbsp;&lt;span&gt;&amp;quot;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.0/kconfig/CONFIG_OPENTHREAD_MBEDTLS_CHOICE.html"&gt;CONFIG_OPENTHREAD_MBEDTLS_CHOICE&lt;/a&gt;&lt;/span&gt;&lt;span&gt;=y&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/thread/362921?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 20:44:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4a7330-e043-408a-b423-3ef24ddc8b0c</guid><dc:creator>Janfried</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen&lt;/p&gt;
&lt;p&gt;Thank you for your answer! Of course. I pushed the code to a public repo:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://gitlab.com/dev2409/nRF5430"&gt;https://gitlab.com/dev2409/nRF5430&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/thread/362850?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 12:18:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da9d4c9c-de01-4007-83e3-c823442d0c93</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi Jan,&lt;/p&gt;
&lt;p&gt;I tried to reproduce the issue on my end, but I was not able to do so. I added the configs and changes you described above, but I may have missed something.&lt;/p&gt;
&lt;p&gt;Can you upload the project, or a patch with the required changes to reproduce the issue?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/thread/361640?ContentTypeID=1</link><pubDate>Tue, 05 Apr 2022 04:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3505bbac-b77e-4021-ac79-26b9e2737db5</guid><dc:creator>Janfried</dc:creator><description>&lt;p&gt;Hi J&amp;oslash;rgen&lt;/p&gt;
&lt;p&gt;Thank you very much for your answer!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried to delete the build folder according to the post and built the project again and also in a new workspace. Unfortunately, with the same result as before.&lt;/p&gt;
&lt;p&gt;My CMakeLists.txt is the same as the one in the echo_client sample.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enable MBEDTLS debugging Nordic provided security backend (for CoAP Secure via OpenThread on nRF5340)</title><link>https://devzone.nordicsemi.com/thread/361600?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2022 15:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61702a2a-8dd7-4e5b-ac41-4fbd2e9fa1db</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try to delete the build directory before building, as suggested in &lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/14633#issuecomment-474249944"&gt;this post&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>