<?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>NRFX SPI Migration From NCS 1.9 to NCS 2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93675/nrfx-spi-migration-from-ncs-1-9-to-ncs-2-0</link><description>Hello, I&amp;#39;ve been trying to migrate my code which uses NRFX SPI functions to NCS 2.0 
 The code compiles just fine on NCS 1.9, but after migrating to NCS 2.0 I noticed that it doesn&amp;#39;t recognize that I&amp;#39;m even using NRFX SPI drivers: 
 
 However my configuration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Nov 2022 10:52:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93675/nrfx-spi-migration-from-ncs-1-9-to-ncs-2-0" /><item><title>RE: NRFX SPI Migration From NCS 1.9 to NCS 2.0</title><link>https://devzone.nordicsemi.com/thread/394884?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 10:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88f71f72-fa4c-4835-bcef-d025eee3bc8d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;The problem you encountered might be related to this&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/commit/451a6ed6abbf35262bbcf0f926e7941f6c74c632"&gt;commit&lt;/a&gt;.&lt;br /&gt;You could try setting compatible = &amp;quot;nordic,nrf-spis&amp;quot;&amp;nbsp;in an overlay file as shown below.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;spi1 {
    compatible = &amp;quot;nordic,nrf-spis&amp;quot;;
};&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX SPI Migration From NCS 1.9 to NCS 2.0</title><link>https://devzone.nordicsemi.com/thread/394707?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 13:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e21234fb-0361-4dc3-ab31-6135e3682b44</guid><dc:creator>Marius_U</dc:creator><description>&lt;p&gt;Yes, after switching to NCS 2.0 I get an error that &lt;span style="background-color:#282a36;color:#f8f8f2;float:none;font-family:Consolas, &amp;#39;Courier New&amp;#39;, monospace;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;"&gt;identifier &amp;quot;NRFX_SPIS1_INST_IDX&amp;quot; is undefined&lt;/span&gt; therefore I am unable to compile it. Upon investigating this further I found that this define is missing (not compiled) because it doesn&amp;#39;t pass this if in nrfx_spis.h file:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667913184317v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As you can see from all the greyed out text the define is not included because it cannot pass this if. Upon investigating it even further i found that a whole nrfx_spis.c file is not included into build because it doesn&amp;#39;t pass this NRFX_CHECK (also seen in first, initial post screenshot):&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1667913599085v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I do not use any sample application, this application has been in development for a while. I figure something changed with the configuration which causes me to fail this &amp;#39;if&amp;#39; and not include all the nrfx_spis.c file. So the question is what changed going from NCS 1.9 to NCS 2.0 that causes me not to include nrfx_spis drivers into the build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRFX SPI Migration From NCS 1.9 to NCS 2.0</title><link>https://devzone.nordicsemi.com/thread/394693?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 13:04:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946e5eb2-5e6a-445e-b939-b8861ab84182</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you please elaborate on your question? What happens when you switch to NCS v2.0.0? Do you get any error? If so, could you show the error? Did you make any changes to your application in the transitioning process from NCS v1.9.0 to v2.0.0? Where are the screenshots taken from? Do you use any of the provided NCS samples?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>