<?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>Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110151/configuration-for-native-tls-no-offload-to-modem</link><description>Dear Support-Team, 
 due to the 2KB limitation of the secure buffers of the nrf9160 modem I am trying to setup native tls. I found the https_client sample which sounded promising, but when I use the same configuration as described in the sample (prj.conf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jun 2024 08:20:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110151/configuration-for-native-tls-no-offload-to-modem" /><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/488442?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 08:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee39564d-c2ff-4eb4-8ada-a170cb4ecdc4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Stefan Schmidt"]Hi&amp;nbsp;&lt;span&gt;Håkon, could you please show me where I find this information?&lt;/span&gt;[/quote]
&lt;p&gt;My apologies, but this is not directly documented, but it used to be:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.9-branch/nrf_modem/include/nrf_modem_limits.h#L27-L28"&gt;https://github.com/nrfconnect/sdk-nrfxlib/blob/v1.9-branch/nrf_modem/include/nrf_modem_limits.h#L27-L28&lt;/a&gt;&lt;/p&gt;
[quote user="Stefan Schmidt"]&lt;p&gt;&lt;span&gt;&amp;nbsp;sorry, I have to come back to this. You mentioned the https_client&amp;nbsp;&lt;/span&gt;sample, which has PSA crypto enabled. However, one of the settings in this overlay is&lt;/p&gt;
&lt;p&gt;CONFIG_NORDIC_SECURITY_BACKEND=y&lt;/p&gt;
&lt;p&gt;When I search for&amp;nbsp;&lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt; in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html&lt;/a&gt;&amp;nbsp;I get this information:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Use nRF Security with Mbed TLS legacy crypto APIs support&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Using this configuration enables legacy support for mbed TLS APIs This configuration is not to be used for PSA API support. Note that this will enable nrf_oberon by default. Multiple backends is not supported.&amp;quot;&lt;/p&gt;
&lt;p&gt;For me this sounds like it is not using PSA crypto enabled. Am I getting this wrong?&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;#39;m sorry, but my former response is not correct for TLS based PSA communication.&lt;/p&gt;
&lt;p&gt;We are currently using mbed-tls v3.5.x, which still requires certain legacy APIs, meaning that there will be some PSA APIs enabled, but by&amp;nbsp;selecting NORDIC_SECURITY_BACKEND it&amp;#39;ll favor legacy APIs.&lt;/p&gt;
&lt;p&gt;At this time, including the upcoming ncs v2.7.0 (which is in RC1 now), PSA TLS socket operations are not yet implemented.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My deepest apologies for this inconvenience.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/488218?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 07:00:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b087d0d8-cd8b-467a-9136-a86c005dbe36</guid><dc:creator>Stefan Schmidt</dc:creator><description>[quote userid="2115" url="~/f/nordic-q-a/110151/configuration-for-native-tls-no-offload-to-modem/479178"]Note that the modem cannot handle more than 4k on non-secure sockets, so no need to exceed 4096 bytes on this configuration.[/quote]
&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon, could you please show me where I find this information?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/488145?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2024 13:05:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ab58148-7e9a-4831-ab48-a9d908d4ef56</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;sorry, I have to come back to this. You mentioned the https_client&amp;nbsp;&lt;/span&gt;sample, which has PSA crypto enabled. However, one of the settings in this overlay is&lt;/p&gt;
&lt;p&gt;CONFIG_NORDIC_SECURITY_BACKEND=y&lt;/p&gt;
&lt;p&gt;When I search for&amp;nbsp;&lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt; in &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html"&gt;https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html&lt;/a&gt;&amp;nbsp;I get this information:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;Use nRF Security with Mbed TLS legacy crypto APIs support&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Using this configuration enables legacy support for mbed TLS APIs This configuration is not to be used for PSA API support. Note that this will enable nrf_oberon by default. Multiple backends is not supported.&amp;quot;&lt;/p&gt;
&lt;p&gt;For me this sounds like it is not using PSA crypto enabled. Am I getting this wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/479599?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 06:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f10a68a-89ed-41f4-97c8-00ebe87604db</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Glad to hear that you got it running.&lt;/p&gt;
[quote userid="130767" url="~/f/nordic-q-a/110151/configuration-for-native-tls-no-offload-to-modem/479589"]&lt;p&gt;&amp;nbsp;I have everything working now: I fetch the credentials with mbedtls and raw socket and store them to the modem, so that I can use them later with offloaded sockets.&lt;/p&gt;
&lt;p&gt;I started my journey with the https_client sample you mentioned and I have replaced the root certificate locally.&lt;/p&gt;
&lt;p&gt;Although everything is working I am still confused about the configurations of legacy and PSA APIs: Which one should I use?&lt;/p&gt;[/quote]
&lt;p&gt;Both work. Using PSA (ie. using TF-M to do the actual crypto-operations) will be more secure, but it will likely take up a bit more flash.&lt;/p&gt;
[quote userid="130767" url="~/f/nordic-q-a/110151/configuration-for-native-tls-no-offload-to-modem/479589"]And how do I configure the usage of the PSA API? See my last post in our thread, it seems contradicting (CONFIG_NRF_SECURITY &amp;lt;&amp;gt; &lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt;).[/quote]
&lt;p&gt;https_client sample has an overlay for this, with PSA crypto enabled:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.2/samples/net/https_client/overlay-tfm_mbedtls.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.2/samples/net/https_client/overlay-tfm_mbedtls.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/479589?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 06:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62f7b185-c284-4d47-9e57-369f37b37623</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have everything working now: I fetch the credentials with mbedtls and raw socket and store them to the modem, so that I can use them later with offloaded sockets.&lt;/p&gt;
&lt;p&gt;I started my journey with the https_client sample you mentioned and I have replaced the root certificate locally.&lt;/p&gt;
&lt;p&gt;Although everything is working I am still confused about the configurations of legacy and PSA APIs: Which one should I use? And how do I configure the usage of the PSA API? See my last post in our thread, it seems contradicting (CONFIG_NRF_SECURITY &amp;lt;&amp;gt; &lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/479274?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 14:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7b27d3-4131-45ae-a959-bed98f90e26d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Stefan Schmidt"]Your mentioning of CONFIG_MODEM_KEY_MGMT makes me a bit nervous: Is it possible to use raw sockets with mbedtls and offloaded secure sockets in the same firmware? I thought I just set the SOCK_NATIVE_TLS to choose which tls implementation I am using on the socket?!?[/quote]
&lt;p&gt;The reason I was asking is because of the https_client sample.&lt;/p&gt;
&lt;p&gt;If you are testing with the https_client sample, this is a check in main on where to store the certificate, either via the modem API or via tls_credentials_* API.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general, you can add this to add debug prints (note: there will be a lot...) from mbedtls:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MBEDTLS_DEBUG=y
CONFIG_MBEDTLS_DEBUG_C=y
CONFIG_MBEDTLS_DEBUG_LEVEL=4
CONFIG_MBEDTLS_LOG_LEVEL_DBG=y
CONFIG_MBEDTLS_SSL_DEBUG_ALL=y
CONFIG_LOG_BUFFER_SIZE=20000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you do not want to use PSA APIs with mbedtls, here is an example with a modified https_client sample (note: using&amp;nbsp;&lt;strong&gt;DigiCertGlobalG2.pem&lt;/strong&gt; and not&amp;nbsp;DigiCertGlobalRootCA.pem as originally used in ncs v2.5.x! host has changed root since this time).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/https_5F00_client_5F00_mbedtls_5F00_nrf9160.zip"&gt;devzone.nordicsemi.com/.../https_5F00_client_5F00_mbedtls_5F00_nrf9160.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Again, the above uses mbedtls in the non-secure application, and not via PSA APIs. Please also see the defines/checks in main.c to match against your own application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/479187?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 11:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b6dca0-c422-4a05-b9bd-f58401941268</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I see in my .config that CONFIG_MODEM_KEY_MGMT is not set.&lt;/p&gt;
&lt;p&gt;I have to get data from a server which does not support chunked encoding or similar techniques to break down the data into chunks that would fit into the nrf9160 modem tls buffer (Limitations in the release notes of the 1.3.5 modem firmware - TLS/DTLS - Secure socket buffer size is 2kB.).&lt;/p&gt;
&lt;p&gt;Therefore I use mbedtls with raw sockets. With the configuration above I am able to receive the 5949 Bytes in one chunk, this is what I get from my call to zsock_recv():&lt;/p&gt;
&lt;p&gt;[00:00:31.687,713] &amp;lt;err&amp;gt; fetch_data: zsock_recv() gave 5949 bytes&lt;/p&gt;
&lt;p&gt;But the configuration dependencies are not clear to me and I think the documentation is a mess.&lt;/p&gt;
&lt;p&gt;Another example:&lt;br /&gt;In this post&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/106179/crypto-psa-mbedtls-errors-when-migrating-from-sdk-2-1-1-to-sdk-2-5-0/467977"&gt;RE: Crypto (PSA/mbedtls) ERRORS when migrating from SDK 2.1.1 to SDK 2.5.0&lt;/a&gt;&amp;nbsp;the author mentions &amp;quot;You use both&amp;nbsp;&lt;span&gt;CONFIG_NRF_SECURITY&lt;/span&gt;&lt;span&gt;=y and&amp;nbsp;CONFIG_NORDIC_SECURITY_BACKEND=y in your configuration. Unfortunately, this combination makes PSA unavailable.&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;But &lt;span&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/span&gt; is selected by CONFIG_BUILD_WITH_TFM (which is selected when I build a _ns image):&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CONFIG_NORDIC_SECURITY_BACKEND&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Use nRF Security with Mbed TLS legacy crypto APIs support&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Using this configuration enables legacy support for mbed TLS APIs This configuration is not to be used for PSA API support. Note that this will enable nrf_oberon by default. Multiple backends is not supported.&lt;/em&gt;&lt;br /&gt;&lt;em&gt; Dependencies&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;CONFIG_SOC_FAMILY_NRF&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Defaults&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;y if CONFIG_BUILD_WITH_TFM&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And CONFIG_NRF_SECURITY is required to enable PSA:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Enable nRF Security&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Set this configuration to enable nRF Security. This provides Arm PSA cryptography APIs with RNG support (optionally).&lt;/em&gt;&lt;/p&gt;
&lt;dl class="field-list simple"&gt;
&lt;dt&gt;&lt;em&gt;Dependencies&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;em&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_SOC_FAMILY_NRF"&gt;CONFIG_SOC_FAMILY_NRF&lt;/a&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;Defaults&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;
&lt;ul class="simple"&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;y if &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/kconfig/index.html#CONFIG_BUILD_WITH_TFM"&gt;CONFIG_BUILD_WITH_TFM&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So my understanding is that both are set to y by CONFIG_BUILD_WITH_TFM, but they should not be both enabled if I want to use the PSA API?!?!?&lt;/p&gt;
&lt;p&gt;What would be the correct minimal configuration when I need tls1.2 with x509 certificates and a data chunks size exceeding the limitation of the modem? On a nrf9160 with nrf Connect SDK v 2.5.0 and a non-secure application....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your mentioning of CONFIG_MODEM_KEY_MGMT makes me a bit nervous: Is it possible to use raw sockets with mbedtls and offloaded secure sockets in the same firmware? I thought I just set the SOCK_NATIVE_TLS to choose which tls implementation I am using on the socket?!?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/479178?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2024 10:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:720ae0df-0e30-4aa8-af0b-63b6e5103dca</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you targeting to not use any TFM PSA APIs for crypto?&lt;/p&gt;
&lt;p&gt;As you originally mention, this overlay conf file shows how to setup mbedtls in the application space, using TFM crypto:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.2/samples/net/https_client/overlay-tfm_mbedtls.conf"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.2/samples/net/https_client/overlay-tfm_mbedtls.conf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Stefan Schmidt"]&lt;span style="color:rgba(86, 156, 214, 1);"&gt;CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN&lt;/span&gt;&lt;span style="color:rgba(204, 204, 204, 1);"&gt;=8192&lt;/span&gt;[/quote]
&lt;p&gt;Note that the modem cannot handle more than 4k on non-secure sockets, so no need to exceed 4096 bytes on this configuration.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is your posted configuration complete? I cannot see &amp;quot;CONFIG_MODEM_KEY_MGMT=n&amp;quot; in there.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/478916?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 09:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ddda50a-9416-44b1-bf3f-e881b3282d2a</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Ok, when I remove&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DEBUG&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DEBUG_INFO&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_DEBUG_THREAD_INFO&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I get&lt;/p&gt;
&lt;p&gt;[153/157] Linking C executable bin/tfm_s.axf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 31544 B 32256 B 97.79%&lt;br /&gt; RAM: 14736 B 32 KB 44.97%&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 276600 B 384 KB 70.34%&lt;br /&gt; RAM: 149948 B 211608 B 70.86%&lt;br /&gt; IDT_LIST: 0 GB 2 KB 0.00%&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/478802?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 13:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30fae6b7-0a10-49d1-b7e0-23cc05de68fa</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I can share my configuration and the final build output. With this configuration (related to mbedTLS)&lt;/p&gt;
&lt;div style="background-color:#1f1f1f;color:#cccccc;font-family:&amp;#39;Droid Sans Mono&amp;#39;, &amp;#39;monospace&amp;#39;, monospace;font-size:14px;font-weight:normal;line-height:19px;white-space:pre;"&gt;
&lt;div&gt;&lt;span style="color:#6a9955;"&gt;# MbedTLS and security&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_TFM_PROFILE_TYPE_MINIMAL&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_ENABLE_HEAP&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=8192&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=4096&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_HEAP_SIZE&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=32768&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_RSA_C&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_GCM_C&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_DHM_C&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_TLS_LIBRARY&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_X509_LIBRARY&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_X509_REMOVE_INFO&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_MBEDTLS_PKCS1_V15&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_NRF_SECURITY&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#569cd6;"&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX&lt;/span&gt;&lt;span style="color:#cccccc;"&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;I get this build output:&lt;/p&gt;
&lt;p&gt;[153/157] Linking C executable bin/tfm_s.axf&lt;br /&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 64332 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 65024 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 98.94%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 18888 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 32 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 57.64%&lt;/p&gt;
&lt;p&gt;[433/444] Linking C executable zephyr/zephyr.elf&lt;br /&gt;Memory region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used Size&amp;nbsp; Region Size&amp;nbsp; %age Used&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 349572 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 352 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 96.98%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150204 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 211608 B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 70.98%&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDT_LIST:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 GB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 KB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00%&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/478781?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 12:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07e46232-f721-4354-8dfb-a7e22d8ef69a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you share the build output?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/478767?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2024 12:14:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a6c816-eda1-46cb-893a-6f68b9ae42a2</guid><dc:creator>Stefan Schmidt</dc:creator><description>&lt;p&gt;Hi H&amp;aring;kon,&lt;/p&gt;
&lt;p&gt;thanks a lot for your suggestion. I am currently using the https_client demo and reverse engineer the meaning of the different CONFIG options used there.&lt;/p&gt;
&lt;p&gt;Resizing a partition might be an option, but resizing because I don&amp;#39;t know how to configure the mbed tls library is not a solution.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuration for native tls (no offload to modem)</title><link>https://devzone.nordicsemi.com/thread/478377?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2024 15:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39b9f37d-ee34-4016-ae1c-f3255bd1103f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How much are you overflowing with?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can adjust the size of TFM using this configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_TFM&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that the alignment can be a bit tricky here, especially when combining this with mcuboot.&lt;/p&gt;
&lt;p&gt;Try for instance&amp;nbsp;0x27E00 if you&amp;#39;re building with mcuboot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>