<?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>How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160</link><description>Currently I&amp;#39;m using the mbedtls library to run several crypto functions so that my system can use mutual TLS (mTLS) to communicate with the cloud. In order to save resources (especially RAM) I would like to move the crypto functionality to hardware. On</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Feb 2024 15:37:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160" /><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/469304?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 15:37:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aeda84d-01b1-4a92-b450-34e6c087c2b0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/gildev"&gt;GilDev&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;There has happened quite a lot on the TF-M front over the past years, so if you have a question about it, I recommend you open a new ticket where you share all the relevant details.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/469245?ContentTypeID=1</link><pubDate>Fri, 16 Feb 2024 13:22:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5891fbb-da2d-4174-919d-79919762d6ce</guid><dc:creator>GilDev</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Again, any news about this please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/326394?ContentTypeID=1</link><pubDate>Tue, 24 Aug 2021 13:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53fa8e08-ec2f-4a7d-bdd1-f01bf9823998</guid><dc:creator>Gawain</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m also trying to get a Zephyr non-secure app running with TF-M, BL2 and PSA crypto and&amp;nbsp;need this working. It would be great if we could get an update on the timeframe for this please?&lt;/p&gt;
&lt;p&gt;For info, I&amp;nbsp;did make some progress by building&amp;nbsp;the TF-M&amp;nbsp;repository&amp;nbsp;independently of Zephyr&amp;nbsp;and then flashing&amp;nbsp;the BL2 and the TF-M secure and nonsecure images. I then built my zephyr app for the nrf9160ns board (at a base addresss of 0x50400), signed it, converted it to an srecord, and then flashed&amp;nbsp;it in place of the tf-m&amp;nbsp;non-secure code.&amp;nbsp;Everything then&amp;nbsp;starts up but some of the PSA crypto calls hang forever presumably because there is some issue with the non-secure to secure&amp;nbsp;interface.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Gawain&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/325658?ContentTypeID=1</link><pubDate>Thu, 19 Aug 2021 08:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1ff5291-acaf-444a-a7f0-9921b250d92c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Are you sure the secure firmware actually printed something?&lt;/p&gt;
&lt;p&gt;Do you see something if you add a printf to a secure function that you know is called?&lt;/p&gt;
&lt;p&gt;E.g. when I tested with the nrf/samples/crypto/rsa sample, I added a printf in tfm_crypto_generate_key, on line 674 in modules/tee/tfm/trusted-firmware-m/secure_fw/partitions/crypto/crypto_key.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/325565?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 15:32:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e047c21-73b2-4ac0-af3b-6dfd2fe2580f</guid><dc:creator>mglettig</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/325556#325556"]&lt;p&gt;Have you tried changing the pin in the device tree?&lt;/p&gt;
&lt;p&gt;If I change the pin in an overlay file for the non-secure board, it uses a different pin.&lt;/p&gt;[/quote]
&lt;p&gt;Yes I tried to change the DTS-Overlay but that didn&amp;#39;t have an effect on the Secure-Firmware (TF-M). I still couldn&amp;#39;t see the UART / console output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/325556?ContentTypeID=1</link><pubDate>Wed, 18 Aug 2021 15:09:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcbf89ec-2a00-410f-93ec-a51c0b121d35</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Have you tried changing the pin in the device tree?&lt;/p&gt;
&lt;p&gt;If I change the pin in an overlay file for the non-secure board, it uses a different pin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/324786?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 09:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac787c52-3e9f-45b8-af32-1b0e9c927043</guid><dc:creator>mglettig</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/322696#322696"]If you do not, and the peripheral is configured as secure, you will not be able to use it from the non-secure domain.[/quote]
&lt;p&gt;By default USART1 is enabled in TF-M. But how do I configure the TX-Pin of the UART?&lt;/p&gt;
&lt;p&gt;I found 2 potential places to do:&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/nrf9160dk_nrf9160/RTE_Device.h&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;nrf/modules/tfm/tfm/boards/board/RTE_Device.h&lt;/p&gt;
&lt;p&gt;I tried to&amp;nbsp;change&amp;nbsp;RTE_USART1_TXD_PIN in both of those files but I didn&amp;#39;t see any console output on the desired pin. Can you please help me here so that I see the TF-M console output?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/324750?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 06:47:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9eef6582-8af7-463a-b559-e01d27f8cc15</guid><dc:creator>mglettig</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/324073#324073"]&lt;p&gt;Currently, there is an issue with using bootloader + TF-M, where BL2 don&amp;#39;t play well with Nordic Crypto, and NCS MCUBoot don&amp;#39;t play well with TF-M. But, this is being worked on.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know when this issue will be solved.&lt;/p&gt;[/quote]
&lt;p&gt;Could you please ask the development team until this will be resolved? I didn&amp;#39;t get an answer when commenting the PR.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/324526?ContentTypeID=1</link><pubDate>Wed, 11 Aug 2021 14:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bcd2910-4823-4d00-bac4-95391fb64fd7</guid><dc:creator>mglettig</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/324310#324310"]I have created a feature request to make this configurable, and will try to keep you updated on the progress.[/quote]
&lt;p&gt;Thanks Didrik. Looking forward to this feature.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/324310?ContentTypeID=1</link><pubDate>Tue, 10 Aug 2021 15:47:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b427596-1482-49ac-923d-0710625929e9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Regarding UART1:&lt;/p&gt;
&lt;p&gt;It is currently not (easily) possible to disbale UART1 in TF-M.&lt;/p&gt;
&lt;p&gt;The way to do it would normally be to enable UART1 in the device tree (as you can see in the psa_tls sample I linked previously, it should be disabled to use TF-M). However, TF-M will still try to use it, which will cause a bus error. It is possible to modify TF-M to not initialize UART1, but that is not a good solution.&lt;/p&gt;
&lt;p&gt;I have created a feature request to make this configurable, and will try to keep you updated on the progress.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/324073?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 15:43:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80c89b24-548c-4748-91e4-5d9a1f2ac27d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Sorry, we are quite short on staff at the moment, so it is hard to answer all the questions in a timely manner.&lt;/p&gt;
&lt;p&gt;Currently, there is an issue with using bootloader + TF-M, where BL2 don&amp;#39;t play well with Nordic Crypto, and NCS MCUBoot don&amp;#39;t play well with TF-M. But, this is being worked on.&lt;/p&gt;
&lt;p&gt;However, I don&amp;#39;t know when this issue will be solved.&lt;/p&gt;
&lt;p&gt;Below&amp;nbsp; are some PRs that are relevant:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/159"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/159&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-mcuboot/pull/158"&gt;https://github.com/nrfconnect/sdk-mcuboot/pull/158&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-trusted-firmware-m/pull/26"&gt;https://github.com/nrfconnect/sdk-trusted-firmware-m/pull/26&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/5048"&gt;https://github.com/nrfconnect/sdk-nrf/pull/5048&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/4972"&gt;https://github.com/nrfconnect/sdk-nrf/pull/4972&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You might also be interested in this example on the master branch, showing TLS running on TF-M:&lt;br /&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/master/samples/crypto/psa_tls"&gt;https://github.com/nrfconnect/sdk-nrf/tree/master/samples/crypto/psa_tls&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t gotten a reply from our developers regarding the UART yet, but I have pushed for an update.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/323911?ContentTypeID=1</link><pubDate>Mon, 09 Aug 2021 06:41:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc79fc76-873f-4c17-ba24-36f45d342181</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you have an update for me?&lt;/p&gt;
&lt;p&gt;My goal is to finish TF-M integration this week.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322711?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 15:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f099e4fc-ec91-42b0-b0f6-bd1f25be6a8f</guid><dc:creator>mglettig</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/322696#322696"]TF-M has an integrated logging module which uses UART1. However, I believe you should be able to disable that, so that UART1 becomes available for the non-secure application.[/quote]
&lt;p&gt;I found this CMake value here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-trusted-firmware-m/blob/3599bcc187f3ac05119b9424c859332f5acb0db3/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf9160/config.cmake#L9"&gt;https://github.com/nrfconnect/sdk-trusted-firmware-m/blob/3599bcc187f3ac05119b9424c859332f5acb0db3/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf9160/config.cmake#L9&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you please also ask your experts how to free UART1 from TF-M? And also how to change the UART1 configuration if I want to use it (can this be done using the normal device-tree?).&lt;/p&gt;
[quote userid="81181" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/322696#322696"]&amp;nbsp;I&amp;#39;ll have to check with our experts and come back to you.[/quote]
&lt;p&gt;Thanks for asking them. Looking forward to an answer.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322696?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 14:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2b8190c-3ae8-4e2e-b964-8f009a1273fa</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="mglettig"]Or can I tell TF-M do not use UART1?[/quote]
&lt;p&gt;TF-M has an integrated logging module which uses UART1. However, I believe you should be able to disable that, so that UART1 becomes available for the non-secure application.&lt;/p&gt;
&lt;p&gt;If you do not, and the peripheral is configured as secure, you will not be able to use it from the non-secure domain. This will be true also for SPI and TW 1, as they use the same hardware as UART1.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mglettig"]An issue that still bugs me is that I&amp;#39;m unable to enable the bootloader.[/quote][quote user="mglettig"]Do you have a solution for me?[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;ll have to check with our experts and come back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322497?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 13:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2394eeed-a628-471d-9234-ae5290f22126</guid><dc:creator>mglettig</dc:creator><description>[quote userid="104198" url="~/f/nordic-q-a/77691/how-to-use-cryptocell-on-nrf9160/322355#322355"]&lt;p&gt;Now when I run my application which tries to establish an mTLS connection I get the following error:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;[00:23:03.684,661] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -5&lt;/p&gt;
&lt;p&gt;Currently I do have my private-key and certificate that I need for mTLS in the non-secure area and register them using the function&amp;nbsp;tls_credential_add. Should that still work with hw crypto acceleration or do I have to keep everything in the secure area? If yes how would I do that? Any ideas why the TLS handshake is failing?&lt;/p&gt;[/quote]
&lt;p&gt;Ok this is solved now by switching from ARM GNU Toolchain to SDK Zephyr Toolchain. See here&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/34658#issuecomment-828422111"&gt;https://github.com/zephyrproject-rtos/zephyr/issues/34658#issuecomment-828422111&lt;/a&gt;. This was very hard to find because I didn&amp;#39;t have a console output from TF-M.&lt;/p&gt;
&lt;p&gt;The questions regarding UART1 remain.&lt;/p&gt;
&lt;p&gt;An issue that still bugs me is that I&amp;#39;m unable to enable the bootloader. When I try it with the following configuration...&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IMG_MANAGER=y
CONFIG_IMG_ERASE_PROGRESSIVELY=y
CONFIG_REBOOT=y
CONFIG_BOOTLOADER_MCUBOOT=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;... the bootloader get stuck:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1-1-g0cf135c0cf22  ***
I: Starting bootloader
I: Primary image: magic=bad, swap_type=0x1, copy_done=0x2, image_ok=0x2
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0x10000
I: Jumping to the first image slot&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I tried to set CONFIG_TFM_BL2 but that&amp;#39;s not possible due to the following limitation:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627566896616v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Do you have a solution for me?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322355?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 06:57:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baf0158d-f2dc-48b9-873b-eec97dc75fa7</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your hints. In the meantime I managed to build both TF-M with the minimal configuration and TF-M with a custom configuration. Both images are booting now. I currently use the following custom configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_BL2=n

CONFIG_TFM_IPC=y
CONFIG_TFM_MCUBOOT_IMAGE_NUMBER=1
CONFIG_TFM_PARTITION_INITIAL_ATTESTATION=n
CONFIG_TFM_PARTITION_AUDIT_LOG=n
CONFIG_TFM_CRYPTO_MAC_MODULE_ENABLED=y
CONFIG_TFM_CRYPTO_ASYMMETRIC_MODULE_ENABLED=n
CONFIG_TFM_CRYPTO_KEY_DERIVATION_MODULE_ENABLED=y
CONFIG_TFM_CRYPTO_KEY_MODULE_ENABLED=y
CONFIG_TFM_CRYPTO_AEAD_MODULE_ENABLED=n
CONFIG_TFM_CRYPTO_GENERATOR_MODULE_ENABLED=y
CONFIG_TFM_PARTITION_PROTECTED_STORAGE=y
CONFIG_TFM_PARTITION_INTERNAL_TRUSTED_STORAGE=y
CONFIG_TFM_CRYPTO_CIPHER_MODULE_ENABLED=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now when I run my application which tries to establish an mTLS connection I get the following error:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;[00:23:03.684,661] &amp;lt;err&amp;gt; net_sock_tls: TLS handshake error: -5&lt;/p&gt;
&lt;p&gt;Currently I do have my private-key and certificate that I need for mTLS in the non-secure area and register them using the function&amp;nbsp;tls_credential_add. Should that still work with hw crypto acceleration or do I have to keep everything in the secure area? If yes how would I do that? Any ideas why the TLS handshake is failing?&lt;/p&gt;
&lt;p&gt;One other question: UART1 is used by TF-M. Does this mean that all of the following peripherals are not usable by my application anymore?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627541760774v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Or can I tell TF-M do not use UART1?&lt;/p&gt;
&lt;p&gt;Last but not least: How can I access the TF-M UART1 console output on nRF9160-DK?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322102?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 16:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cef50af-89f7-4441-9781-eeb876db6231</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi, and sorry.&lt;/p&gt;
&lt;p&gt;Due to summer vacations, we are a bit short on staff, so I don&amp;#39;t have as much time as I would like to look through each ticket.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think the minimal configuration will work for you, as it disables most modules except for RNG and HASH. However, looking at nrf/modules/trusted-firmware-m/Kconfig.tfm_minimal.defconfig should give you an idea of what you can disable to reduce flash usage.&lt;/p&gt;
&lt;p&gt;You can also increase the TF-M partition size by setting CONFIG_PM_PARTITION_SIZE_TFM. The flash partition used by TF-M is locked by the SPU, which has a granularity of 32kB, which is why you see a 64kB partition. This is also a good reason to stick to 32kB steps when you configure the partition size.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/322043?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 12:15:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d2b4875-f462-4766-878c-f31b7b2f1017</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you have an update for me?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321701?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 06:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bd9134f-4aaf-474a-9ca0-eddab1ba7b54</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regarding the build failure above I figured out what caused this issue. I disabled UART hardware flow control in my DT overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
	status = &amp;quot;okay&amp;quot;;
	// rx-pin = &amp;lt;24&amp;gt;;
	// tx-pin = &amp;lt;25&amp;gt;;
	current-speed = &amp;lt;115200&amp;gt;;
	/delete-property/ hw-flow-control;
	/delete-property/ rts-pin;
    /delete-property/ cts-pin;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looks like&amp;nbsp;&lt;span&gt;modules/tfm/tfm/boards/board/RTE_Device.h:37 is expecting that RTS-Pin and CTS-Pin are configured. &lt;strong&gt;What is the proper way to disable UART flow-control in the device tree&lt;/strong&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As a temporary fix I applied the following patch:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/iiot_main_firmware/nrf9160dk_nrf9160ns.overlay b/iiot_main_firmware/nrf9160dk_nrf9160ns.overlay
index 20139d1..199bcb9 100644
--- a/iiot_main_firmware/nrf9160dk_nrf9160ns.overlay
+++ b/iiot_main_firmware/nrf9160dk_nrf9160ns.overlay
@@ -40,13 +40,10 @@
        // rx-pin = &amp;lt;24&amp;gt;;
        // tx-pin = &amp;lt;25&amp;gt;;
        current-speed = &amp;lt;115200&amp;gt;;
-       /delete-property/ hw-flow-control;
-       /delete-property/ rts-pin;
-    /delete-property/ cts-pin;
 };
 
 &amp;amp;uart1 {
-       status = &amp;quot;okay&amp;quot;;
+       status = &amp;quot;disabled&amp;quot;;
        rx-pin = &amp;lt;26&amp;gt;;
        tx-pin = &amp;lt;27&amp;gt;;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now I managed to build TF-M. However I get a linker error because TF-M no &lt;strong&gt;longer fits my ROM&lt;/strong&gt; (overflowed by 184708 bytes).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;--&amp;gt; Does HW crypto acceleration also work with TF-M Minimal?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Next I tried to build with&amp;nbsp;CONFIG_TFM_MINIMAL=y. But that still leads to a ROM overflow&amp;nbsp;by 32256 bytes. From the description of the KConfig parameter&amp;nbsp;CONFIG_TFM_MINIMAL I excepted&amp;nbsp;that it would consume 32 kB ROM only. What is the reason for it to actually consume 64 kB? Am I supposed to change the partitioning of my ROM? How could I do this with TF-M?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Michael&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321606?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 14:59:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f27369e-da1c-4a6a-a20d-0c629d456753</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry our replies almost came at the same time. As you can see I now switched from SPM to TFM with the issue posted below. I also tested&amp;nbsp;CONFIG_TFM_MINIMAL=y but without success.&lt;/p&gt;
&lt;p&gt;Thanks for checking my memory question with your colleagues.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321600?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 14:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0960d903-2940-497c-a83e-b6e20b167be4</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="mglettig"]Why is CRYPTOCELL_USABLE set to n?[/quote]
&lt;p&gt;&amp;nbsp;Are you building the application with TF-M or the SPM?&lt;/p&gt;
&lt;p&gt;From what I can see, CONFIG_CRYTPOCELL_USABLE depends on CONFIG_BUILD_WITH_TFM.&lt;/p&gt;
&lt;p&gt;Regarding how much memory optimization you can get that way, I&amp;#39;ll have to check with my colleagues and come back to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321597?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 14:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57d8df9a-de72-4794-98c7-81e516a265aa</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Ok I&amp;#39;m another step further. Looks like CONFIG_BUILD_WITH_TFM=y is needed in order to get the CC1xx backend. However enabling this leads to build errors at the UART driver:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;FAILED: platform/CMakeFiles/platform_ns.dir/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.o 
/opt/toolchains/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc -DDAUTH_CHIP_DEFAULT -DDOMAIN_NS=1 -DMCUBOOT_IMAGE_NUMBER=2 -DMCUBOOT_SIGN_RSA -DMCUBOOT_SIGN_RSA_LEN=3072 -DNRF9160_XXAA -DNRF_TRUSTZONE_NONSECURE -DSECURE_UART1 -DTFM_PARTITION_AUDIT_LOG -DTFM_PARTITION_CRYPTO -DTFM_PARTITION_INITIAL_ATTESTATION -DTFM_PARTITION_INTERNAL_TRUSTED_STORAGE -DTFM_PARTITION_LOG_LEVEL=TFM_PARTITION_LOG_LEVEL_DEBUG -DTFM_PARTITION_PLATFORM -DTFM_PARTITION_PROTECTED_STORAGE -D__NRF_TFM__ -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/. -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/nrfx -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/nrfx/mdk -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/nrfx/drivers/include -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/.. -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/../interface/include -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/nrf9160/. -I/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board -I../zephyr/misc/generated/syscalls_links/include -I/opt/zephyrproject/zephyr/include -I/opt/zephyrproject/nrf/modules/tfm/tfm/boards/include -I/opt/zephyrproject/nrf/include/tfm -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/common -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/driver -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/include -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/cmsis -I/opt/zephyrproject/nrf/modules/tfm/tfm/boards/partition -I../zephyr/include/generated -I/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/interface/include -Igenerated/interface/include -I/opt/zephyrproject/modules/tee/tfm/tf-m-tests/app/../ns_interface -I/opt/zephyrproject/modules/tee/tfm/tf-m-tests/app/../ns_interface/ns_client_id -mcpu=cortex-m33+nodsp -g   --specs=nano.specs -Wall -Wno-format -Wno-return-type -Wno-unused-but-set-variable -c -fdata-sections -ffunction-sections -fno-builtin -fshort-enums -funsigned-char -mthumb -nostdlib -std=c99 -msoft-float -MD -MT platform/CMakeFiles/platform_ns.dir/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.o -MF platform/CMakeFiles/platform_ns.dir/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.o.d -o platform/CMakeFiles/platform_ns.dir/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.o   -c /opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c
In file included from /opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:23,
                 from /opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c:21:
../zephyr/include/generated/devicetree_unfixed.h:4799:38: error: &amp;#39;DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rts_pin&amp;#39; undeclared here (not in a function); did you mean &amp;#39;DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_rx_pin&amp;#39;?
 4799 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_peripheral_40000000_S_uart_8000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:2326:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
 2326 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:27:32: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
   27 | #define UARTE_PROP(idx, prop)  DT_PROP(UARTE(idx), prop)
      |                                ^~~~~~~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:2326:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart0&amp;#39;
 2326 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:173:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  173 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:26:22: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   26 | #define UARTE(idx)   DT_NODELABEL(uart##idx)
      |                      ^~~~~~~~~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:27:40: note: in expansion of macro &amp;#39;UARTE&amp;#39;
   27 | #define UARTE_PROP(idx, prop)  DT_PROP(UARTE(idx), prop)
      |                                        ^~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:37:41: note: in expansion of macro &amp;#39;UARTE_PROP&amp;#39;
   37 | #define   RTE_USART0_RTS_PIN            UARTE_PROP(0, rts_pin)
      |                                         ^~~~~~~~~~
/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c:305:21: note: in expansion of macro &amp;#39;RTE_USART0_RTS_PIN&amp;#39;
  305 |         .pselrts  = RTE_USART##idx##_RTS_PIN,                             \
      |                     ^~~~~~~~~
/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c:371:1: note: in expansion of macro &amp;#39;DRIVER_USART&amp;#39;
  371 | DRIVER_USART(0);
      | ^~~~~~~~~~~~
../zephyr/include/generated/devicetree_unfixed.h:4799:38: error: &amp;#39;DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_cts_pin&amp;#39; undeclared here (not in a function); did you mean &amp;#39;DT_N_S_soc_S_peripheral_40000000_S_uart_8000_P_tx_pin&amp;#39;?
 4799 | #define DT_N_NODELABEL_uart0         DT_N_S_soc_S_peripheral_40000000_S_uart_8000
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:2326:24: note: in definition of macro &amp;#39;DT_CAT&amp;#39;
 2326 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:27:32: note: in expansion of macro &amp;#39;DT_PROP&amp;#39;
   27 | #define UARTE_PROP(idx, prop)  DT_PROP(UARTE(idx), prop)
      |                                ^~~~~~~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:2326:24: note: in expansion of macro &amp;#39;DT_N_NODELABEL_uart0&amp;#39;
 2326 | #define DT_CAT(a1, a2) a1 ## a2
      |                        ^~
../zephyr/misc/generated/syscalls_links/include/devicetree.h:173:29: note: in expansion of macro &amp;#39;DT_CAT&amp;#39;
  173 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:26:22: note: in expansion of macro &amp;#39;DT_NODELABEL&amp;#39;
   26 | #define UARTE(idx)   DT_NODELABEL(uart##idx)
      |                      ^~~~~~~~~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:27:40: note: in expansion of macro &amp;#39;UARTE&amp;#39;
   27 | #define UARTE_PROP(idx, prop)  DT_PROP(UARTE(idx), prop)
      |                                        ^~~~~
/opt/zephyrproject/nrf/modules/tfm/tfm/boards/board/RTE_Device.h:39:41: note: in expansion of macro &amp;#39;UARTE_PROP&amp;#39;
   39 | #define   RTE_USART0_CTS_PIN            UARTE_PROP(0, cts_pin)
      |                                         ^~~~~~~~~~
/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c:306:21: note: in expansion of macro &amp;#39;RTE_USART0_CTS_PIN&amp;#39;
  306 |         .pselcts  = RTE_USART##idx##_CTS_PIN,                             \
      |                     ^~~~~~~~~
/opt/zephyrproject/modules/tee/tfm/trusted-firmware-m/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/Driver_USART.c:371:1: note: in expansion of macro &amp;#39;DRIVER_USART&amp;#39;
  371 | DRIVER_USART(0);
      | ^~~~~~~~~~~~
[170/233] Building C object secure_fw/partitions/crypto/mbedcrypto/nrf_security_src/mbedtls/CMakeFiles/crypto_service_mbedcrypto_base_vanilla.dir/opt/zephyrproject/mbedtls/library/psa_crypto.o
ninja: build stopped: subcommand failed.
[103/400] Completed &amp;#39;mcuboot_subimage&amp;#39;
FAILED: modules/trusted-firmware-m/tfm-prefix/src/tfm-stamp/tfm-build tfm/secure_fw/s_veneers.o tfm/app/libtfm_api_ns.a tfm/generated/interface/include/psa_manifest/sid.h tfm/platform/libplatform_ns.a tfm/bin/tfm_s.bin tfm/bin/tfm_s.hex tfm/bin/tfm_ns.bin tfm/bin/tfm_ns.hex tfm/bin/tfm_s_signed.bin tfm/bin/tfm_ns_signed.bin tfm/bin/tfm_s_ns_signed.bin 
cd /opt/zephyrproject/iiot-firmware-nordic-nrf91/iiot_main_firmware/build/tfm &amp;amp;&amp;amp; /usr/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /work/iiot_main_firmware/build
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321573?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 12:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17c64e28-f8a9-4975-9d8e-49d91117f189</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;In the meantime I managed to get rid of the SSL handshake error by setting&amp;nbsp;CONFIG_MBEDTLS_PKCS1_V15=y. But I&amp;#39;m still not sure if the application now really uses the crypto hardware or some other backend in software (e.g. nrf_oberon backend). How can I figure out if the hardware acceleration is really in the loop? This is how menuconfig looks like:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627044026299v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also my biggest question still is to what extend is the value&amp;nbsp;CONFIG_MBEDTLS_HEAP_SIZE still relevant with the crypto HW? Because I expected to save RAM when moving to the Crypto-HW. That was my initial motivation for enabling the crypto hw.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321524?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 09:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f89aa157-5126-4bf3-b605-56fd0cc0765a</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/didrik-rokhaug"&gt;Didrik Rokhaug&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;While I still have this handshake error I think that hw acceleration is still not yet active. Menuconfig shows me the following when inspecting&amp;nbsp;CONFIG_CC3XX_BACKEND:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1627032734456v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Why is CRYPTOCELL_USABLE set to n? Or is&amp;nbsp;&lt;span&gt;CONFIG_CC3XX_BACKEND=y something that I need to enable in my secure image? Does it work with SPM or do I need to switch to TF-M?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Michael&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use CryptoCell on NRF9160</title><link>https://devzone.nordicsemi.com/thread/321476?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 06:53:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:132e2cde-60f4-43c4-ac90-7a9b3b92df53</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;It looks like I have much more success when trying to&amp;nbsp; use the Crypto-HW with NRF v1.6. I managed to build it now with the following configuration flags:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NORDIC_SECURITY_BACKEND=y
CONFIG_CC3XX_BACKEND=y
CONFIG_MBEDTLS_TLS_LIBRARY=y
CONFIG_MBEDTLS_ECDSA_DETERMINISTIC=n
CONFIG_MBEDTLS_SSL_SRV_C=n
CONFIG_MBEDTLS_X509_CSR_WRITE_C=y
CONFIG_MBEDTLS_X509_CREATE_C=y
CONFIG_MBEDTLS_PK_WRITE_C=y
CONFIG_MBEDTLS_SSL_SERVER_NAME_INDICATION=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;While compiling works again I did not yet manage to get my application working the way it used to before HW acceleration. The https client requests fail (SSL handshake error 7780).&lt;/p&gt;
&lt;p&gt;To what extend is the value&amp;nbsp;CONFIG_MBEDTLS_HEAP_SIZE still relevant with the crypto HW?&lt;/p&gt;
&lt;p&gt;I do not yet understand how mbedtls and the crypto acceleration play together.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>