<?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>Configuring SPIS3 on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51201/configuring-spis3-on-nrf9160</link><description>What are all the configuration options necessary to configure the nRF9160 as a SPI slave? I&amp;#39;m working with a custom board and have specific DTS files I&amp;#39;m working with. Here are all the config options in my board_defconfig file: 
 CONFIG_ARM=y CONFIG_SOC_FAMILY_NRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Aug 2019 07:01:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51201/configuring-spis3-on-nrf9160" /><item><title>RE: Configuring SPIS3 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/205748?ContentTypeID=1</link><pubDate>Fri, 23 Aug 2019 07:01:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22274d4a-4719-44c4-9d44-47d0f16edd5b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You are welcome! Very glad to hear that it solved the case!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPIS3 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/205707?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 21:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:780f85e7-26a1-4062-aaa2-58dfe0e68b40</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;This turned out to be the solution:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adding these lines to my prj.conf (could also go in the defconfig file for the board)
&lt;ul&gt;
&lt;li&gt;# Enable SPI driver&lt;br /&gt;CONFIG_SPI=y&lt;br /&gt;CONFIG_SPI_SLAVE=y&lt;br /&gt;CONFIG_SPI_3_NRF_SPIS=y&lt;br /&gt;# 2 = slave only&lt;br /&gt;CONFIG_SPI_3_OP_MODES=2&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Adding an overlay file for the project with these lines:
&lt;ul&gt;
&lt;li&gt;&amp;amp;spi3 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-spis&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; mosi-pin = &amp;lt;17&amp;gt;;&lt;br /&gt; miso-pin = &amp;lt;18&amp;gt;;&lt;br /&gt; sck-pin = &amp;lt;19&amp;gt;;&lt;br /&gt; csn-pin = &amp;lt;21&amp;gt;;&lt;br /&gt; def-char = &amp;lt;0x00&amp;gt;;&lt;br /&gt;};&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Doing this allowed it to build, and I can see the data being transferred between the master and slave appropriately.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPIS3 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/205270?ContentTypeID=1</link><pubDate>Wed, 21 Aug 2019 10:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16b48476-c964-452f-8988-a37ea0fb9f72</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A similar case was &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50677/nrf9160-spi-slave-example-code/202573#202573"&gt;answered here&lt;/a&gt;.&amp;nbsp;According to the answer, my colleague Andreas gives, the only thing you could try to remove is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SPI_NRFX=y&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Give it a try and let me know how that works.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Configuring SPIS3 on nRF9160</title><link>https://devzone.nordicsemi.com/thread/205147?ContentTypeID=1</link><pubDate>Tue, 20 Aug 2019 23:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c218ca3c-dc15-4e55-99ff-3898dd3c3d81</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;I should also mention that the SPM builds successfully. The above failure happens in the non-secure application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>