<?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 configure peripherals with SPM on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47512/how-to-configure-peripherals-with-spm-on-nrf9160</link><description>Is there a set of directions for configuring the peripherals for the nRF9160 SPM. 
 I need to change the default configuration shown in the SPM sample. 
 I tried editing the file c:\ncs\nrf\subsys\spm\Kconfig but that dis not change the setting on UART2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jun 2019 09:27:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47512/how-to-configure-peripherals-with-spm-on-nrf9160" /><item><title>RE: How to configure peripherals with SPM on nRF9160</title><link>https://devzone.nordicsemi.com/thread/192299?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 09:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be4d4d48-b2e5-4fda-bc0f-84c8bc04430f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Smitesh,&lt;/p&gt;
&lt;p&gt;In [subsys/spm/spm.c] add the following at ~line 305&amp;nbsp;&lt;em&gt;(under NRF_PWM3)&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;PERIPH(&amp;quot;NRF_WDT&amp;quot;, NRF_WDT_S, CONFIG_SPM_NRF_WDT_NS),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and in [subsys/spm/Kconfig] please add ~line179&amp;nbsp;&lt;em&gt;(under SPM_NRF_PWM3_NS):&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config SPM_NRF_WDT_NS
	bool &amp;quot;WDT is Non-Secure&amp;quot;
	default y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And you should get the output:&lt;/p&gt;
&lt;p&gt;&lt;span style="color:transparent;height:240px;width:320px;"&gt;...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:transparent;height:240px;width:320px;"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-27df0d234df949f5a4cd6674e55bf3fe/pastedimage1560331744888v1.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Yes, that should be possible&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;For future questions please make a separate support ticket, thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure peripherals with SPM on nRF9160</title><link>https://devzone.nordicsemi.com/thread/191906?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 05:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64e18081-66ce-4b01-ade0-20e1a7193e19</guid><dc:creator>khodidas</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;How to configure WDT in SPM ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am looking to configure peripherals without modifying &amp;quot;nrf&amp;quot; folder contents.&lt;/p&gt;
&lt;p&gt;I have moved &amp;quot;http_application_update&amp;quot; folder outside the &amp;quot;nrf&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;Is it possible to do the same with &amp;quot;SPM&amp;quot; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As i have seen &amp;quot;spm.c&amp;quot; file is inside &amp;quot;ncs\nrf\subsys\spm&amp;quot; path.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Smitesh Mali&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure peripherals with SPM on nRF9160</title><link>https://devzone.nordicsemi.com/thread/188210?ContentTypeID=1</link><pubDate>Tue, 21 May 2019 11:30:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b824c5-4458-4586-935e-e5ab84cf8e19</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;br /&gt;To set the UARTE2 to non-secure you can change that in the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/subsys/spm/Kconfig#L96" rel="noopener noreferrer" target="_blank"&gt;spm Kconfig by changing the default value&lt;/a&gt;, or the recommended way is to set this in&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/spm/prj.conf" rel="noopener noreferrer" target="_blank"&gt; the prj.conf to the &amp;#39;spm&amp;#39;:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;CONFIG_SPM_NRF_UARTE2_NS=y&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can verify the change by looking at the output from the spm:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-27df0d234df949f5a4cd6674e55bf3fe/pastedimage1558438248504v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To change the pins for the uart2 you do this in the&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/spm/nrf9160_pca10090.overlay" rel="noopener noreferrer" target="_blank"&gt; .overlay file&lt;/a&gt;&amp;nbsp;similar to how it&amp;#39;s done in the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/samples/nrf9160/lte_ble_gateway/nrf9160_pca10090ns.overlay" rel="noopener noreferrer" target="_blank"&gt;.overlay file in the lte_gateway_sample.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>