<?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>NRF_DRV_TWI_INSTANCE error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32974/nrf_drv_twi_instance-error</link><description>hi, 
 i test my project for i2c sensor module, the debug found have error what there are the following error tips. 
 ..\..\..\swct_application\i2c_sensor_driver.c(14): error: #20: identifier &amp;quot;NRF_DRV_TWI_INSTANCE_0&amp;quot; is undefined 
 please tell me set this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Apr 2018 07:49:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32974/nrf_drv_twi_instance-error" /><item><title>RE: NRF_DRV_TWI_INSTANCE error</title><link>https://devzone.nordicsemi.com/thread/127308?ContentTypeID=1</link><pubDate>Sun, 08 Apr 2018 07:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:252b0956-9305-47e9-a55d-f8ca1fec7c7c</guid><dc:creator>lynn</dc:creator><description>&lt;p&gt;i am using the SDK 15.0.0 ， using the&amp;nbsp;i2c_sensor_driver.c,&lt;span class="activity-title"&gt;&lt;a class="internal-link view-post" href="https://devzone.nordicsemi.com/f/nordic-q-a/32974/nrf_drv_twi_instance-error"&gt;&lt;span&gt;NRF_DRV_TWI_INSTANCE error&lt;/span&gt;&lt;/a&gt;&lt;/span&gt; problem has been resolved.but i&amp;nbsp; found a question, as follows:&lt;/p&gt;
&lt;p&gt;//twi:&lt;/p&gt;
&lt;p&gt;m_xfer_done = false;&lt;br /&gt;err_code = nrf_drv_twi_tx(&amp;amp;m_twi, SENSOR_ADDR, reg, sizeof(reg), false);&lt;br /&gt;&amp;nbsp;APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;while (m_xfer_done == false);&lt;/p&gt;
&lt;p&gt;//spi:&lt;/p&gt;
&lt;p&gt;KX123_spi_activate_cs();/*no delay*/&lt;br /&gt;&amp;nbsp;spi_xfer_done = false; &amp;nbsp;&lt;br /&gt;&amp;nbsp; APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;kx123_spi_instance, tx_data, 2, NULL, 0));&lt;br /&gt;&amp;nbsp; while(!spi_xfer_done); &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; KX123_spi_deactivate_cs();&lt;/p&gt;
&lt;p&gt;i also need to wait for complete flag every time? this way will cause system halted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_DRV_TWI_INSTANCE error</title><link>https://devzone.nordicsemi.com/thread/127305?ContentTypeID=1</link><pubDate>Sun, 08 Apr 2018 07:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83dfb5e-2521-4fb3-af71-b5eee19ca530</guid><dc:creator>lynn</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you very much for your reply.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_DRV_TWI_INSTANCE error</title><link>https://devzone.nordicsemi.com/thread/126828?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 11:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c709cc5-9ac7-4723-9fc6-adfaf4d9e467</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is hard to tell without more information.&lt;/p&gt;
&lt;p&gt;What SDK version is this, and what SoC? (SDK 14.2? nRf52832?)&lt;/p&gt;
&lt;p&gt;Is your application based on an example, if so which example?&lt;/p&gt;
&lt;p&gt;Can you share the full build log?&lt;/p&gt;
&lt;p&gt;Can you share i2c_sensor_driver.c?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>