<?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>SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42457/spi</link><description>Hi 
 I&amp;#39;m using SDK 15.2.0 with Nrf52 
 I used the example of SPI from the SDK 
 ..\..\nRF5_SDK_15.2.0_9412b96\examples\peripheral\spi 
 
 and I get this error 
 ..\..\..\main.c(153): error: #20: identifier &amp;quot;NRF_DRV_SPI_INSTANCE_0&amp;quot; is undefined 
 
 I added</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Jan 2019 16:42:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42457/spi" /><item><title>RE: SPI</title><link>https://devzone.nordicsemi.com/thread/165573?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 16:42:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:178ba409-42f5-4522-9a86-17e60b1b58ef</guid><dc:creator>Shimon_nohayo</dc:creator><description>&lt;p&gt;Thanks - that helped!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI</title><link>https://devzone.nordicsemi.com/thread/165475?ContentTypeID=1</link><pubDate>Mon, 14 Jan 2019 13:36:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c790f8fa-4451-43dc-85f8-eb9379e14303</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Looking at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34343/correct-way-to-merge-examples-from-sdk"&gt;this &lt;/a&gt;similar question, have you defined the following in sdk_config.h?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; SPI0_ENABLED - Enable SPI0 instance
//==========================================================
#ifndef SPI0_ENABLED
#define SPI0_ENABLED 1 // delault: 0
#endif
// &amp;lt;q&amp;gt; SPI0_USE_EASY_DMA  - Use EasyDMA&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI</title><link>https://devzone.nordicsemi.com/thread/165307?ContentTypeID=1</link><pubDate>Sun, 13 Jan 2019 04:10:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecc39045-b44d-416d-9118-db21c47aeb5c</guid><dc:creator>nszmnsky</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It sounds like you have not enabled use of the SPI.&lt;/p&gt;
&lt;p&gt;Are you using the example project as is? I just loaded the SES project under SDK 15.2&amp;#39;s PCA10040 ...\examples\peripheral\spi and it compiled without issue. Also I don&amp;#39;t see a line 153 in main.&lt;/p&gt;
&lt;p&gt;Looking at the project, it appears that NRF_DRV_SPI_INSTANCE_0 is defined in nrf_drv_spi_h&amp;nbsp; if NRFX_SPIM0_ENABLED or NRFX_SP0_ENABLED (see line 121-127). Both of those defines are found in sdk_config.h&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>