<?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>&amp;#39;NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS&amp;#39; undeclared here (not in a function); did you mean &amp;#39;NRF_DRV_SPI_INSTANCE_0&amp;#39;?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39990/nrf_drv_spi_instance_spi_instance_lis-undeclared-here-not-in-a-function-did-you-mean-nrf_drv_spi_instance_0</link><description>Hi, 
 I am shifting my program from version 11 to 15.2. While including SPI files to the ble_app_uart code, I met with this issue. I have enabled all defines for SPI interfacing in sdk_config. Can anyone provide any suggestion?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Nov 2018 12:04:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39990/nrf_drv_spi_instance_spi_instance_lis-undeclared-here-not-in-a-function-did-you-mean-nrf_drv_spi_instance_0" /><item><title>RE: 'NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_0'?</title><link>https://devzone.nordicsemi.com/thread/157929?ContentTypeID=1</link><pubDate>Mon, 19 Nov 2018 12:04:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abeb43c6-1ac6-400d-b4b8-0f49eac2731a</guid><dc:creator>shilpa</dc:creator><description>&lt;p&gt;thank you for the reply..It works fine&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_0'?</title><link>https://devzone.nordicsemi.com/thread/156859?ContentTypeID=1</link><pubDate>Mon, 12 Nov 2018 12:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b92074c-7f8d-4cc3-9e80-0700d7819539</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was not able to find the defintion &amp;#39;NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS&amp;#39; anywhere, and a google search only showed&amp;nbsp;this case. I am not sure how to help you with that. Can you please explain the purpose of this definition? Did you make it yourself?&lt;/p&gt;
&lt;p&gt;The difference between the spi instance in SDK 11 and SDK 15 is that in the former, the instance only consist of a single struct. In the latter, when creating the instance, it has to check whether SPIM is enabled or not. But the function&amp;nbsp;NRF_DRV_SPI_INSTANCE(..) is used in both versions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, regarding migrating from SDK 11 to SDK 15 according to&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36013/migration-guide-from-sdk-11-to-sdk-15"&gt;this&lt;/a&gt;&amp;nbsp;link, it is a quite demanding process and if the project is not too big you could consider just starting over again.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_0'?</title><link>https://devzone.nordicsemi.com/thread/156407?ContentTypeID=1</link><pubDate>Thu, 08 Nov 2018 05:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7e9e7d0-ad86-4d2a-94fc-41e9f500ad46</guid><dc:creator>shilpa</dc:creator><description>&lt;p&gt;the older version contain definition as follows:&lt;/p&gt;
&lt;p&gt;#define NRF_DRV_SPI_INSTANCE(id) \&lt;br /&gt;{ \&lt;br /&gt; .p_registers = NRF_DRV_SPI_PERIPHERAL(id), \&lt;br /&gt; .irq = CONCAT_3(SPI, id, _IRQ), \&lt;br /&gt; .drv_inst_idx = CONCAT_3(SPI, id, _INSTANCE_INDEX), \&lt;br /&gt; .use_easy_dma = CONCAT_3(SPI, id, _USE_EASY_DMA) \&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But when i shift to newer version I got the above error...So I understand that there is some issues with legacy layer.&lt;strong&gt; But unable to find a solution for the same.&lt;/strong&gt; Can you just point out the cause for error and its solution&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_DRV_SPI_INSTANCE_SPI_INSTANCE_LIS' undeclared here (not in a function); did you mean 'NRF_DRV_SPI_INSTANCE_0'?</title><link>https://devzone.nordicsemi.com/thread/155393?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 15:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b39fa9de-24bf-4a3b-8e30-6ba09c3c27af</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;See&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34900/nrfx-migration-legacy-layer"&gt;this&lt;/a&gt;&amp;nbsp;link&lt;/p&gt;
&lt;p&gt;Best regards, Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>