<?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>error:  #20: identifier &amp;quot;NRF_SPIS0&amp;quot; is undefined</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20837/error-20-identifier-nrf_spis0-is-undefined</link><description>Hi, 
 After configuring the nRF51422 as a SPIS slave 0, we get the following error when trying to create the slave instance: 
 static const nrf_drv_spis_t spis = NRF_DRV_SPIS_INSTANCE(SPIS0_INSTANCE_INDEX); /**&amp;lt; SPI instance. */ 
 ......\m_SPI_MIDI</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Mar 2017 13:57:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20837/error-20-identifier-nrf_spis0-is-undefined" /><item><title>RE: error:  #20: identifier "NRF_SPIS0" is undefined</title><link>https://devzone.nordicsemi.com/thread/81385?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 13:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5af0813-2426-4d98-a71e-d2fb55767d76</guid><dc:creator>FredNovalia</dc:creator><description>&lt;p&gt;Thanks, that was it. The code compiles now.&lt;/p&gt;
&lt;p&gt;Just a suggestion, maybe when the nRF51 target is selected, the SPIS0 could be greyed and disabled so the user cannot select it in the Configuration Wizard.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;Fred&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error:  #20: identifier "NRF_SPIS0" is undefined</title><link>https://devzone.nordicsemi.com/thread/81384?ContentTypeID=1</link><pubDate>Mon, 27 Mar 2017 13:46:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df8eabc2-612e-443d-aed3-0a671d703cbc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;On the nRF51 there is only 1 SPI slave, SPIS1, so you need to use SPIS instance 1 instead of 0:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SPIS_INSTANCE 1 /**&amp;lt; SPIS instance index. */
static const nrf_drv_spis_t spis = NRF_DRV_SPIS_INSTANCE(SPIS_INSTANCE);/**&amp;lt; SPIS instance. */
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;From the nRF51422 Product Specification page 34:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/SPI_5F00_NRF51.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>