<?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 problem with custom Secure Partition Manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86644/nrf9160-problem-with-custom-secure-partition-manager</link><description>Hello! I&amp;#39;m trying to use a custom SPM using this guide: https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application I would like to be able to read some data through the uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Apr 2022 15:14:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86644/nrf9160-problem-with-custom-secure-partition-manager" /><item><title>RE: Nrf9160 problem with custom Secure Partition Manager</title><link>https://devzone.nordicsemi.com/thread/365626?ContentTypeID=1</link><pubDate>Fri, 29 Apr 2022 15:14:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94f6af5c-5064-4850-83a0-f547bb1c862a</guid><dc:creator>Gioele</dc:creator><description>&lt;p&gt;Perfect!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf9160 problem with custom Secure Partition Manager</title><link>https://devzone.nordicsemi.com/thread/362384?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 13:50:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d9e83ce-88b7-4389-8f8d-b9cea4dbaf5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gioele,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UART1 is disabled by default, see&amp;nbsp;nrf9160dk_nrf9160_ns.dts in&amp;nbsp;\zephyr\boards\arm\nrf9160dk_nrf9160.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So you need to configure this in the overlay:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;amp;uart1{&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;status&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;&amp;quot;okay&amp;quot;&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;rx-pin = &amp;lt;10&amp;gt;;&lt;br /&gt;tx-pin = &amp;lt;11&amp;gt;;&lt;br /&gt;current-speed = &amp;lt;115200&amp;gt;;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;};&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, if you use the same pins on UARTE1 as the UART that used by SPM then you may need to disable the CONSOLE and UART on SPM child image.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I attached here an example that worked for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/uart_5F00_loopback.zip"&gt;devzone.nordicsemi.com/.../uart_5F00_loopback.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf9160 problem with custom Secure Partition Manager</title><link>https://devzone.nordicsemi.com/thread/362151?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 15:51:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5300c147-0f81-4481-878d-682eb5292dc2</guid><dc:creator>Gioele</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I use UARTE1.&lt;br /&gt;This is my log:&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Schermata-2022_2D00_04_2D00_06-alle-17.34.19.png" /&gt;&lt;br /&gt;And this is my .prj file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_RESET_ON_FATAL_ERROR=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And this is my .overlay file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart1{
	rx-pin = &amp;lt;10&amp;gt;;
	tx-pin = &amp;lt;11&amp;gt;;
	current-speed = &amp;lt;115200&amp;gt;;
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nrf9160 problem with custom Secure Partition Manager</title><link>https://devzone.nordicsemi.com/thread/362032?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 10:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a2c84c0-fe83-4ca9-bdc1-902a38a9551c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gioele,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which UART peripheral are you planning to use ? Is it UARTE2 ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you capture the log when you booting up, it should show which peripheral is secure and which is non secure. Something like this:&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1649239821164v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You may need to set&amp;nbsp;CONFIG_SPM_NRF_UARTE2_NS=y in the spm project if you want to use UARTE2 in non-secure domain.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you let me know if you are testing with the example from the blog you referred to or you are testing with your own application ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>