<?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>azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112095/azure_iot_hub-sample-without-tfm-in-sdk-v2-6-x</link><description>In the transition from SDK v2.5.x to v2.6.x, Nordic removed support for boards that don&amp;#39;t have the nonsecure (_ns) configuration in the Azure IOT hub sample. In other words. the sample now only supports TFM builds. I would like to use the sample for a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jun 2024 19:20:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112095/azure_iot_hub-sample-without-tfm-in-sdk-v2-6-x" /><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/489381?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2024 19:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d290fc7-0a16-401e-9951-4ab75e382372</guid><dc:creator>Rocky</dc:creator><description>&lt;p&gt;Thanks.&amp;nbsp; This helped me get it working.&amp;nbsp;&amp;nbsp;I stepped through the credentials code and found it was working fine.&amp;nbsp; The error was during the TLS connect.&amp;nbsp; Then, I looked at the other ticket you referenced and updated the config variables to get it working.&lt;/p&gt;
&lt;p&gt;These key config parameters were missing.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PSA_WANT_KEY_TYPE_RSA_PUBLIC_KEY=y
CONFIG_PSA_WANT_RSA_KEY_SIZE_1024=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/489077?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 11:29:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b38f7bc3-967b-4a18-9b42-92fcbe5e3779</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Here is a similar ticket which could maybe help you some&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/111996/example-code-for-https-client-using-wifi-nrf7002-nrf5340/489074"&gt;RE: Example code for HTTPS client using WiFi nRF7002 + nRF5340&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/488991?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 06:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9470fb-0367-42ac-b9d3-acf56080ee59</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="tjstone14"]&lt;strong&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;tls_mbedtls_set_credentials&lt;/span&gt;&lt;/strong&gt;[/quote]
&lt;p&gt;Can you debug the code, and step into this?&lt;br /&gt;We are looking for the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which line exactly returns the error number?&lt;/li&gt;
&lt;li&gt;What are all the variables passed to tls_mbedtls_set_credentials()?&lt;/li&gt;
&lt;li&gt;What variable casuses it to return an error? What is the value of that variable?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If a sub-function inside tls_mbedtls_set_credentials() is what failed, do the analysis on that sub-function instead&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/488901?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 14:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77d91d2-3c59-48ac-8c2e-728fc699341e</guid><dc:creator>Rocky</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried the experiment you suggested.&amp;nbsp; Here is what I did.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set up example using SDK v2.6.1 and board&amp;nbsp;&lt;span&gt;nrf7002dk_nrf5340_cpuapp_ns.&amp;nbsp; I then confirmed it worked.&amp;nbsp; The output is as follows: &lt;pre class="ui-code" data-mode="text"&gt;[00:00:38.746,185] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Connected to network
[00:00:38.747,680] &amp;lt;inf&amp;gt; azure_fota: Current firmware version: 0.0.0-dev
[00:00:38.747,680] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Azure IoT Hub library initialized
[00:00:38.747,711] &amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTING
[00:00:51.357,635] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Connection request sent to IoT Hub
[00:00:51.740,295] &amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTED
[00:00:51.787,200] &amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_READY
[00:00:51.787,933] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Sending event:{&amp;quot;temperature&amp;quot;:25.7,&amp;quot;timestamp&amp;quot;:51787}
[00:00:51.788,757] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Event was successfully sent&lt;/pre&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Copied the board files and renamed them to remove the _ns prefix.&amp;nbsp; I then removed the TFM options.&amp;nbsp; Lastly, I created a new build configuration for board&amp;nbsp;nrf7002dk_nrf5340_cpuapp.&amp;nbsp; The project builds and runs, but errors during the sync with the following output:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:10.950,286] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Connected to network
[00:00:10.951,751] &amp;lt;inf&amp;gt; azure_fota: Current firmware version: 0.0.0-dev
[00:00:10.951,751] &amp;lt;inf&amp;gt; azure_iot_hub_sample: Azure IoT Hub library initialized
[00:00:10.951,782] &amp;lt;inf&amp;gt; azure_iot_hub_sample: AZURE_IOT_HUB_EVT_CONNECTING
[00:00:11.518,920] &amp;lt;err&amp;gt; mqtt_helper: mqtt_connect, error: -22
[00:00:11.518,920] &amp;lt;err&amp;gt; azure_iot_hub: mqtt_helper_connect failed, error: -22
[00:00:11.518,920] &amp;lt;err&amp;gt; azure_iot_hub_sample: azure_iot_hub_connect failed: -22&lt;/pre&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;I also used the debugger to try to narrow down where the -22 error is coming from.&amp;nbsp; It is failing in the function &lt;strong&gt;&lt;span style="font-family:&amp;#39;times new roman&amp;#39;, times;"&gt;tls_mbedtls_set_credentials().&amp;nbsp; &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;It appears that the credentials cannot be read from the tags when TFM is not enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/488821?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 09:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cbe6fb6-5c0c-453c-913e-dfdc227b804f</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should be possible to build this without TF-M.&lt;/p&gt;
&lt;p&gt;I suggest that you start by copying the corrent baord files for nrf7002dk_nrf5340_cpuapp_ns to nrf7002dk_nrf5340_cpuapp and remove TF-M related configuration from them.&lt;/p&gt;
&lt;p&gt;Then build for nrf7002dk_nrf5340_cpuapp and look for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/config_and_build/configuring_app/kconfig/index.html#override-kconfig-warnings"&gt;Kconfig override warnings&lt;/a&gt;. If you find any of those, fix them and then continue until the project builds correctly.&lt;/p&gt;
&lt;p&gt;Then run it and see if it works.&lt;/p&gt;
&lt;p&gt;Let me know if you get any problems along the way.&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><item><title>RE: azure_iot_hub sample without TFM in SDK v2.6.x</title><link>https://devzone.nordicsemi.com/thread/488733?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 16:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21cb1983-64bb-432b-bd4d-98e36568616b</guid><dc:creator>Rocky</dc:creator><description>&lt;p&gt;I think this issue might be related. -&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110683/nrf7002dk-tls-mqtt"&gt;devzone.nordicsemi.com/.../nrf7002dk-tls-mqtt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>