<?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>nRF52810 and SPIM configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37542/nrf52810-and-spim-configuration</link><description>I&amp;#39;m new to both the nRF52 family and SPI, and I&amp;#39;m working on an SPI master nRF52810 (using the PC10040e setup). I&amp;#39;m compiling using GCC and makefiles. I&amp;#39;ve set NRFX_SPIM_ENABLED and NRFX_SPIM0_ENABLED in the config, and I&amp;#39;ve got a setup declaration like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Aug 2018 10:39:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37542/nrf52810-and-spim-configuration" /><item><title>RE: nRF52810 and SPIM configuration</title><link>https://devzone.nordicsemi.com/thread/144682?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 10:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa7da2b5-3bba-44f7-ac82-3d932bddf08c</guid><dc:creator>Jim Finnis</dc:creator><description>&lt;p&gt;OK, thanks - so the legacy stuff, when set, overrides the other stuff. I think I&amp;#39;ll stick with&amp;nbsp;commenting out legacy stuff in my sdk_config&amp;nbsp;for now; I don&amp;#39;t want to mess up other things by removing apply_old_config.h.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 and SPIM configuration</title><link>https://devzone.nordicsemi.com/thread/144669?ContentTypeID=1</link><pubDate>Fri, 17 Aug 2018 09:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac054922-2b34-4bd6-8335-7f9cbd027546</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would say that you are pretty much spot on:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt;On investigation, it looks almost as if NRFX_SPIM0_ENABLED is getting undefined somewhere.&lt;/em&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;If you search in your project, you should fine a file called &amp;quot;apply_old_config.h&amp;quot; which does exactly this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe it is included in most projects for porting reasons. However, it is quite confusing when you start with SDK15.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The solution is to:&lt;/p&gt;
&lt;p&gt;1. Either remove all legacy defines from sdk_config.h. Make sure to not remove the defines that doesn&amp;#39;t have an NRFX implementation, that you want to use.&lt;/p&gt;
&lt;p&gt;2. remove the apply_old_config.h file (make sure that the project doesn&amp;#39;t include it). It is included from the file &amp;quot;nrfx_glue.h&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you look at the file, apply_old_config.h, you will understand what it does, and why you get the behavior that you see.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>