<?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>why i am getting error in twi instance 0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40457/why-i-am-getting-error-in-twi-instance-0</link><description>hi... 
 i had merged the two programs , twi sensor and uart in segger 15.2 version . i am using nrf52840 i am getting the error in twi instance 0 . i couldn&amp;#39;t find what error it is ? please can one tell me 
 see the pic below</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Nov 2018 12:20:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40457/why-i-am-getting-error-in-twi-instance-0" /><item><title>RE: why i am getting error in twi instance 0</title><link>https://devzone.nordicsemi.com/thread/157284?ContentTypeID=1</link><pubDate>Wed, 14 Nov 2018 12:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a8e07ee-9a45-4973-9e50-3f25238402be</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If the examples are using the legacy driver API, i.e. nrf_drv_twi_ etc, then you need to set the following definitions&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
//==========================================================
#ifndef TWI_ENABLED
#define TWI_ENABLED 0
#endif&amp;#160;

// &amp;lt;e&amp;gt; TWI0_ENABLED - Enable TWI0 instance
//==========================================================
#ifndef TWI0_ENABLED
#define TWI0_ENABLED 0
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and set the&amp;nbsp;NRFX_TWI_ENABLED and&amp;nbsp;NRFX_TWI0_ENABLED to 0.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bj&amp;oslash;rn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>