<?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>Problems on enabling TF-M&amp;#39;s BL2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80381/problems-on-enabling-tf-m-s-bl2</link><description>A question regarding to nRFSDK 1.7: why does nRFSDK disable using BL2 inside TF-M? If our device needs BL2 with TF-M, how can we enable it? I can&amp;#39;t enable CONFIG_TFM_BL2 if using nrfsdk v1.7.0 since it is disabled by default. 
 Should I use nrfsdk-mcuboot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Oct 2021 08:26:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80381/problems-on-enabling-tf-m-s-bl2" /><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/334777?ContentTypeID=1</link><pubDate>Tue, 19 Oct 2021 08:26:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e40863-6e25-47cb-8307-b8afb9eb77e9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, we do not have a solution for FWU for secure partitions only at the moment. Support for TF-M in nRF Connect SDK is still experimental and some important functionality is still missing. I cannot say which approach we will use for firmware upgrades of secure partitions at the moment, but the team is looking into this.&lt;/p&gt;
&lt;p&gt;Edit: Note that we use a swapping mechanism with MCUboot so that the banked update is stored in a non-secure area. Therefore the application can write the update itself without using a secure service. We bundle TF-M together with the app image, so the current mechanism can be used to update both together.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/334677?ContentTypeID=1</link><pubDate>Mon, 18 Oct 2021 16:36:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fd8159-f0b6-46bc-851f-7bf810b8408a</guid><dc:creator>jli157@intel</dc:creator><description>&lt;p&gt;Einar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mean you haven&amp;#39;t enabled the firmware update secure partitions (FWU) for firmware update? So, what&amp;#39;s Nordic&amp;#39;s plan to support FWU? You will use another approach instead of FWU provided by TF-M?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/333693?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 09:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93104b53-bd93-45d8-9976-a479bbd38ab5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We do not currently have any solution for updating only the secure partition. I have&amp;nbsp;asked&amp;nbsp;the team working on it to look into it.&lt;/p&gt;
&lt;p&gt;For now, you can either enable serial recovery in MCUBoot or use the dfu_target_mcuboot APIs or direct flash read/write to secondary partition (&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/subsys/dfu/dfu_target/src/dfu_target_mcuboot.c"&gt;dfu_target_mcuboot.c&lt;/a&gt;). Or see in &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/subsys/dfu/dfu_target/src/dfu_target_stream.c"&gt;dfu_target_stream.c&lt;/a&gt; how it&amp;#39;s implemented there with flash read/writes. Then to set the image as active you would have to use &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/include/dfu/mcuboot.h"&gt;mcuboot.h&lt;/a&gt; if you use flash write/read operations directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/333652?ContentTypeID=1</link><pubDate>Tue, 12 Oct 2021 07:53:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f114334-a6da-4e3d-93f3-125ac1a64437</guid><dc:creator>jli157@intel</dc:creator><description>&lt;p&gt;We are thinking to use the firmware update secure partition from TF-M to do the firmware update in the future, which means the Zephyr application will use the firmware update TF-M APIs to populate new firmware data to the secondary partitions. What&amp;#39;s your suggestions for this feature?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Okay, I&amp;#39;ll open a new ticket for other questions for nrf_security.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/333241?ContentTypeID=1</link><pubDate>Fri, 08 Oct 2021 11:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68f4852a-2052-4be0-985b-4205823f4afc</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="bleintel"]I just realized that nrfsdk-mcuboot is actually used by Nordic to replace TF-M&amp;#39;s&amp;nbsp;BL2 thus the BL2 inside TF-M is disabled. So, will you continue this way in the future or you will enable TF-M&amp;#39;s BL2 at sometime?&amp;nbsp;[/quote]
&lt;p&gt;There are no work on supporting BL2 now. I cannot say if it will come at some point in the future or not, though.&lt;/p&gt;
[quote user="bleintel"]I saw&amp;nbsp;BL2 inside TF-M has some special customized code based on mcuboot, like the shared data with Firmware Update secure partition. Does nrfsdk-mcuboot work with firmware update secure partition? Or you have another plan to support firmware update?&amp;nbsp;[/quote]
&lt;p&gt;Perhaps you can elaborate? Is the question here if/how you can update TF-M?&lt;/p&gt;
[quote user="bleintel"]Does nrfsdk-mcuboot support using QSPI flash memory as the swap storage on nrf53 DK?&amp;nbsp;[/quote]
&lt;p&gt;Yes, you can have the secondary slot (1) on external flash, and then copy it to slot 0 during activation.&lt;/p&gt;
[quote user="bleintel"]However, I&amp;#39;m wondering why Nordic chose using the static library instead of the package &amp;quot;&lt;span&gt;cryptocell-312-runtime&amp;quot; inside TF-M to enable CryptoCell for TF-M? Are there some special considerations or some limitations?&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;The&amp;nbsp;cryptocell-312-runtime is provided by ARM for use on some other devices, but it not and cannot be used on Nordic devices. The&amp;nbsp;nrf_cc312_mbedcrypto is based on ARM libraries but&amp;nbsp;has (among other things) adaptations for the nRF platform.&lt;/p&gt;
[quote user="bleintel"]&lt;span&gt;Is it okay I&amp;#39;m using the same thread to ask more questions about nrf_security? I&amp;#39;m still having a couple of&amp;nbsp;&lt;/span&gt;questions. Or should I open a new thread?&amp;nbsp;[/quote]
&lt;p&gt;I would prefer it if you make a new thread for separate questions. That makes it easier to maintain the overview, and also makes it easier to delegate some questions to other colleagues of mine.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/333109?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 15:52:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6a76da-736a-4078-abd7-14cd51f8c35c</guid><dc:creator>jli157@intel</dc:creator><description>&lt;p&gt;Hi Einar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the support again!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just realized that nrfsdk-mcuboot is actually used by Nordic to replace TF-M&amp;#39;s&amp;nbsp;BL2 thus the BL2 inside TF-M is disabled. So, will you continue this way in the future or you will enable TF-M&amp;#39;s BL2 at sometime?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I saw&amp;nbsp;BL2 inside TF-M has some special customized code based on mcuboot, like the shared data with Firmware Update secure partition. Does nrfsdk-mcuboot work with firmware update secure partition? Or you have another plan to support firmware update?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does nrfsdk-mcuboot support using QSPI flash memory as the swap storage on nrf53 DK?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As for nrf_security, yes I also found the build script extracts the library&amp;nbsp;nrfxlib/crypto/nrf_cc312_mbedcrypto/lib/cortex-m33/soft-float/no-interrupts/libnrf_cc312_mbedcrypto_0.9.11.a and chooses the object files based on the enabled macros.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m wondering why Nordic chose using the static library instead of the package &amp;quot;&lt;span&gt;cryptocell-312-runtime&amp;quot; inside TF-M to enable CryptoCell for TF-M? Are there some special considerations or some limitations?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it okay I&amp;#39;m using the same thread to ask more questions about nrf_security? I&amp;#39;m still having a couple of&amp;nbsp;&lt;/span&gt;questions. Or should I open a new thread?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems on enabling TF-M's BL2</title><link>https://devzone.nordicsemi.com/thread/333080?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 13:32:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b12bb78-8aeb-4a80-a9ab-cf3aab099c34</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;BL2 is not supported with TF-M right now. You can use&amp;nbsp;BOOTLOADER_MCUBOOT instead for now. Can you elaborate on what you mean by MCUBoot not being&amp;nbsp;well aligned to TF-M?&lt;/p&gt;
&lt;p&gt;Regarding nrf_security, the CryptoCell is enabled by default when you use TF-M. Checking the build/tfm/build.ninja file will show the linking commands with the crypto libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>