<?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>Possible bug: I2C stuck</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15665/possible-bug-i2c-stuck</link><description>Hi 
 I&amp;#39;m having problems with the I2C. For now what I see is the twi_transfer function remains in infinite loop. Other symtomp is the SDA line remains normally at low level. I&amp;#39;ve no idea what&amp;#39;s happening. Errata documents looks ok, and the ERRORSRC register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Aug 2016 11:32:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15665/possible-bug-i2c-stuck" /><item><title>RE: Possible bug: I2C stuck</title><link>https://devzone.nordicsemi.com/thread/59823?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:32:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83ad1bf-e019-4896-8538-7c4be4e71eb3</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Here is also a similar issue (which you commented on): &lt;a href="https://devzone.nordicsemi.com/question/71515/twi-issue/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible bug: I2C stuck</title><link>https://devzone.nordicsemi.com/thread/59822?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 11:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cba4b1b-f534-409c-a1eb-9f7cdcf7911b</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;TWIM is the new peripheral with DMA. You have to use DMA if you use TWIM.&lt;/p&gt;
&lt;p&gt;TWI is deprecated. It is there for backward compatibility with nRF51 and in case the new modules have problems. Deprecated means that the module may not be present in other versions of the nrf52 chip. &lt;strong&gt;They will not be removed on the nRF52832 chip&lt;/strong&gt;. We recommend to use the new modules; it will then be easier to upgrade to newer chips if that is desired in the future.&lt;/p&gt;
&lt;p&gt;If ENABLE register is 0x05 it means that TWI is enabled and not TWIM. You make the driver use TWIM instead with (for TWI0/TWIM0):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define TWI0_USE_EASY_DMA 1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As for your problem with the twi_transfer function remains in infinite loop or the SDA line remains low, I don’t know why this is happening, I think you need to give us more information and first you can switch to TWIM to see if the problem is still there with the new peripheral. You can also try TWIM0, TWIM1 and TWIM2 to see if there is any difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>