<?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>nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84127/nrf9160-use-secure-peripheral-from-non-secure-ns-firmware</link><description>Hi ! 
 In nRF9160, want to implement nrf_mode_lib for modem. Therefore, need to select non-secure(ns) board.But want to set UARTE2 as secure. As UARTE2 provides communication between nRF9160 and nRF52840. 
 Question: 1) How would I used UARTE2 secure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Feb 2022 08:07:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84127/nrf9160-use-secure-peripheral-from-non-secure-ns-firmware" /><item><title>RE: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/351003?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 08:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a35fdd32-675b-43e5-8b9f-ba14cfac6a00</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/samples/nrf9160/secure_services/README.html"&gt;Secure Services&lt;/a&gt; sample showcases how to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/others/secure_services.html#c.spm_request_system_reboot"&gt;Secure Services&lt;/a&gt;.&lt;br /&gt;These are functions in the Secure partition that are accessible from the Non-Secure part.&lt;/p&gt;
&lt;p&gt;Since there are no premade Secure Service for handling UARTE2, you will have to make a custom Secure Service for this.&lt;br /&gt;Here is an older guide on &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;Using a custom Secure Partition Manager with your application&lt;/a&gt;. It might not work as it is for v1.8.0, but it should outline the consent at least.&lt;/p&gt;
&lt;p&gt;There should be a way to do this in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/ug_tfm.html"&gt;Trusted Firmware-M&lt;/a&gt; also, but we do not have any example to showcase this at this time.&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: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350922?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 14:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ede5463-4585-438c-936c-4042e9fd1faf</guid><dc:creator>Siddharth Kachhia</dc:creator><description>&lt;p&gt;Here I have choose UARTE2 as secure for understanding of how to use secure peripheral from non-secure.&lt;/p&gt;
&lt;p&gt;So, Though it may compromise security, how would I handle secure peripheral from non-secure FW image ? Do you have any sample/demo which provides my steps for understanding of using secure peripheral from non-secure board FW image ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350155?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 10:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75179655-36f4-4755-92e7-54d8fb9cf95b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Siddharth Kachhia"]data(UART) would be safe from attackers.[/quote]
&lt;p&gt;The UART goes between the nRF9160 and the nRF52840.&lt;br /&gt;Where can the attack come from?&lt;/p&gt;
&lt;p&gt;Why would it be bad if attackers had access to the UARTE2?&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: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350123?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 08:23:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:563fd60b-42cd-4f3f-915d-c641750d3774</guid><dc:creator>Siddharth Kachhia</dc:creator><description>&lt;p&gt;As on configuring UARTE2 secure, data(UART) would be safe from attackers. To safe that peripheral from attacks, want to make it secure peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350118?ContentTypeID=1</link><pubDate>Fri, 28 Jan 2022 08:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f02aaca8-f754-472d-a6b6-01e5c05692bf</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As security is important, i think it is an good idea to be thorough, so let me ask you this:&lt;/p&gt;
[quote user="Siddharth Kachhia"]So, want to make UARTE2 secure for security purpose.[/quote]
&lt;p&gt;Why does the UARTE2 need to be secure?&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: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350059?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 17:13:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f17015-e66d-49d8-a8a1-bfcabfea6e07</guid><dc:creator>Siddharth Kachhia</dc:creator><description>&lt;p&gt;nRf9160 and nRF52840 communicate with each other and send MQTT-SN msg over UARTE2.&lt;br /&gt;So, want to make UARTE2 secure for security purpose. But also have to use modem with nRF9160 for cloud connection. Hence, need to configure non-secure(ns) board for nRF9160.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s why question arise here that &lt;br /&gt;1) How to use UARTE2 secure peripheral from non-secure firmware ?&lt;br /&gt;2) Can SPM service be modified to add UARTE2 secure peripheral communication from non-secure image ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Use secure peripheral from non-secure(ns) firmware</title><link>https://devzone.nordicsemi.com/thread/350004?ContentTypeID=1</link><pubDate>Thu, 27 Jan 2022 14:16:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1512d6b4-b6d2-4fcd-9a29-fd41a34ff9e4</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Siddharth&lt;/p&gt;
&lt;p&gt;When you build for nrf9160dk_nrf9160, all peripherals memory are in the same &amp;quot;zone&amp;quot;. Therefore, peripherals are neither secure or non-secure.&lt;/p&gt;
&lt;p&gt;When you build for nrf9160dk_nrf9160_ns, peripherals and memory are split into two different parts, the non-secure and the secure.&lt;br /&gt;You can choose which peripherals are set as non-secure. The rest are secure.&lt;/p&gt;
&lt;p&gt;Secure peripherals are secure only because the non-secure parts can not access the secure parts.&lt;br /&gt;Some functions can bridge the non-secure/secure gap, but this should not be done lightly, as it may compromise the security of the device.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/others/spm.html"&gt;Secure Partition Manager&lt;/a&gt; for more information on secure and non-secure.&lt;/p&gt;
&lt;p&gt;What are you going to use the nRF52840 for?&lt;/p&gt;
&lt;p&gt;Would it be an alternative to make UARTE2 non-secure instead of secure, or does it need to be secure?&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></channel></rss>