<?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>This NRFX crap is driving me crazy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38639/this-nrfx-crap-is-driving-me-crazy</link><description>So, another 2 hours down tonight converting to NRFX, this time it is trying to get the SPI to work. 
 This line -&amp;gt; static const nrfx_spi_t m_spi_master_0 = NRFX_SPI_INSTANCE(0); 
 yields the all to familiar to me now compiler error: ../nRF5_SDK_15.0.0_a53641a</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Sep 2018 09:56:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38639/this-nrfx-crap-is-driving-me-crazy" /><item><title>RE: This NRFX crap is driving me crazy</title><link>https://devzone.nordicsemi.com/thread/149188?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2018 09:56:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a10989f-23fd-4e56-80e3-60f0b8d57f49</guid><dc:creator>Hein</dc:creator><description>&lt;p&gt;OK, finally figured this out, another post led me to look at the file apply_old_config.h&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically, if SPI_ENABLED is defined somewhere in the project (even if it is defined as 0), this file happily messes around with your code, undefining things that you have deliberately defined, without being obvious that it is doing so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, completely remove the lines&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#ifndef SPI_ENABLED&lt;br /&gt;#define SPI_ENABLED 0&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;from your config file and it will work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>