<?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 non-secure firmware image can access UARTE2 secure peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83873/nrf9160-non-secure-firmware-image-can-access-uarte2-secure-peripheral</link><description>Hi, I&amp;#39;m working on nRF9160 modem firmware update. 
 For Understanding SPM with secure and non-secure firmaware, I have used UARTE2(secure peripheral) into non-secure firmware image. Though UARTE2is secure it can be accessed through non-secure board image</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jan 2022 13:08:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83873/nrf9160-non-secure-firmware-image-can-access-uarte2-secure-peripheral" /><item><title>RE: nRF9160 non-secure firmware image can access UARTE2 secure peripheral</title><link>https://devzone.nordicsemi.com/thread/349535?ContentTypeID=1</link><pubDate>Tue, 25 Jan 2022 13:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c313c12a-e019-417d-9a57-cab4a688c39b</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;If you set CONFIG_SPM_NRF_TWIM2_NS=n (in &amp;lt;project_folder&amp;gt;/child_image/spm.conf), this should make UARTE2 Secure as well.-&lt;/p&gt;
&lt;p&gt;UARTE2 shares peripheral ID with TWIM2, see &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/memory.html#topic"&gt;Instantiation&lt;/a&gt;.&lt;br /&gt;My guess is that when TWIM is conigured as Non-Secure, this sets the whole of Peripheral ID 10 to Non-Secure as well,&lt;br /&gt;but we will have to investigate this further.&lt;/p&gt;
&lt;p&gt;If the work-around does not work for you, let me know.&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 non-secure firmware image can access UARTE2 secure peripheral</title><link>https://devzone.nordicsemi.com/thread/349366?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 18:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c8204af-fa76-4e1b-97aa-c09ec813c172</guid><dc:creator>Siddharth Kachhia</dc:creator><description>&lt;p&gt;Code used to initialize the UARTE2 for UART communication between nRF9160 and nRF52840:&lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; if (enabled_transport &amp;amp; UART_COMM_TRANS)&lt;br /&gt; {&lt;br /&gt; memset(&amp;amp;uart_ctx, 0x00, sizeof(uart_ctx));&lt;br /&gt; printk(&amp;quot;UART 9160 start!\n&amp;quot;);&lt;br /&gt; err = uart_comm_init(DT_LABEL(DT_NODELABEL(uart2)), &amp;amp;uart_ctx, ASYNC_UART_COMM);&lt;br /&gt; if (err != 0)&lt;br /&gt; {&lt;br /&gt; printk(&amp;quot;Fail to init UART\n&amp;quot;);&lt;br /&gt; break;&lt;br /&gt; }&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/p&gt;
&lt;p&gt;This code is working fine with&amp;nbsp;CONFIG_TRUSTED_EXECUTION_NONSECURE=y and&amp;nbsp;CONFIG_SPM_NRF_UARTE2_NS=n config.&lt;/p&gt;
&lt;p&gt;As UARTE2 is configured as secure peripheral, it would provide an error with non-secure(ns) build. But it is not producing error related to security attribute. Reason ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 non-secure firmware image can access UARTE2 secure peripheral</title><link>https://devzone.nordicsemi.com/thread/349140?ContentTypeID=1</link><pubDate>Mon, 24 Jan 2022 08:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5933065e-9b89-41cb-9850-0800e582ca60</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Could you post the code you used to enable and initialize 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 non-secure firmware image can access UARTE2 secure peripheral</title><link>https://devzone.nordicsemi.com/thread/348989?ContentTypeID=1</link><pubDate>Fri, 21 Jan 2022 14:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f96860-bf0c-4dae-bfa8-76ed039c4d67</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi Siddharth&lt;/p&gt;
&lt;p&gt;I will have a look at this and return with more information on Monday.&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>