<?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>Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49567/support-for-spi-slave-in-nrf9160</link><description>It appears that the current SDK for the nRF9160 does not support SPI Slave communication. Is this true or have I missed something? Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Aug 2019 11:07:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49567/support-for-spi-slave-in-nrf9160" /><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/202392?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 11:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c10a31-1bdd-4333-9397-177778c4bf25</guid><dc:creator>nRF9160</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;can you please share example code of nRF9160 SPI Slave if you have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/198876?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 07:57:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fad59e3c-a0c2-4442-94de-f829590713cf</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Go into &amp;quot;menuconfig&amp;quot; (in SES, project -&amp;gt; configure nrf connect sdk project, check &amp;quot;show names&amp;quot; and &amp;quot;show symbols&amp;quot;),&amp;nbsp; and you should be able to resolve the options to config strings, and also apply settings for &lt;strong&gt;your current build&lt;/strong&gt; (ie: newly added configs must be transferred to prj.conf to be made persistent).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/198875?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 07:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:315568dd-0ec0-42e3-aac6-42f663002ee3</guid><dc:creator>SergioT</dc:creator><description>&lt;p&gt;Sorry to intrude, is there any document explaining the syntax of the CONFIG_ statements for the prj.conf that allows us to choose the correct things? It would really help because now we all depend on somebody&amp;#39;s answer...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/197920?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 15:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0852b5f3-a396-465f-916a-a5ad9c122a04</guid><dc:creator>dboling</dc:creator><description>&lt;p&gt;Great.&amp;nbsp; Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/197840?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 12:27:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4358d05b-8ce8-4005-9f51-12df0d277db0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/dboling"&gt;dboling&lt;/a&gt;: I updated my answer, as I provided the incorrect overlay settings. Sorry! These settings should be enough to initialize the spis driver, but would still require application handling in order to get it fully up and running.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for SPI Slave in nRF9160</title><link>https://devzone.nordicsemi.com/thread/197633?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2019 13:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dbfa976-4c52-4569-b8cb-77b5ab890485</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you mean that there is no sample for SPIS, then;&amp;nbsp;you are right, there&amp;#39;s no sample specifically for SPIS.&lt;/p&gt;
&lt;p&gt;The drivers and port files are present in zephyr:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/drivers/spi/spi_nrfx_spis.c"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/drivers/spi/spi_nrfx_spis.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To enable the module, here with enabling SPIS 3, you can add this to your prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# SPI
CONFIG_SPI=y
CONFIG_SPI_SLAVE=y
CONFIG_SPI_3_NRF_SPIS=y
# 2 = slave only
CONFIG_SPI_3_OP_MODES=2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note: add &amp;quot;CONFIG_SPI_ASYNC=y&amp;quot; for asynchronous SPIS operation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And you&amp;#39;ll also need to set which GPIOs to use and other settings, typically in your project_folder/nrf9160_pca10090ns.overlay (Note, new overlay settings!):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi3 {
	compatible = &amp;quot;nordic,nrf-spis&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	sck-pin = &amp;lt;10&amp;gt;;
	mosi-pin = &amp;lt;11&amp;gt;;
	miso-pin = &amp;lt;12&amp;gt;;
	csn-pin = &amp;lt;13&amp;gt;;
	def-char = &amp;lt;0x00&amp;gt;;
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>