<?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_twim infinite loop waiting for &amp;#39;transmission_finished&amp;#39;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111419/nrfx_twim-infinite-loop-waiting-for-transmission_finished</link><description>Hello everyone, 
 using Segger Embedded Studio, I encountered an issue with the TWI libraries. My device consists of a custom PCB controlled by the nRF52840 (programmed with the PCA10056), to which various sensors are connected using the I2C protocol</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 May 2024 12:32:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111419/nrfx_twim-infinite-loop-waiting-for-transmission_finished" /><item><title>RE: nrfx_twim infinite loop waiting for 'transmission_finished'</title><link>https://devzone.nordicsemi.com/thread/486023?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 12:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cafddd7e-7c77-4144-9be2-bbe2c46cc36e</guid><dc:creator>Kenneth</dc:creator><description>[quote user="monitorambientale"]Do you have any other ideas on the cause of this problem and how to solve it?[/quote]
&lt;p&gt;Sorry no, maybe try some different bidirectional level shifters.&lt;/p&gt;
&lt;p&gt;Kenenth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_twim infinite loop waiting for 'transmission_finished'</title><link>https://devzone.nordicsemi.com/thread/485962?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 07:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e844036-c160-4a20-a3a6-82c3b9b84ca0</guid><dc:creator>monitorambientale</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion. I checked and indeed it gets stuck because one of the two pins (sometimes SDA and sometimes SCL) is pulled low. However, I do not understand why or who is pulling it low, whether it is the microcontroller or the sensor. After conducting some experiments, it seems to me that it might be a problem related to the power demand of the sensor, especially because if the sensor is connected to the I2C lines of the PCB but powered externally at 5V (no longer by the power booster), it works without issues.&lt;/p&gt;
&lt;p&gt;Do you have any other ideas on the cause of this problem and how to solve it? Or how to work around it?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrfx_twim infinite loop waiting for 'transmission_finished'</title><link>https://devzone.nordicsemi.com/thread/485552?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 08:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93cdc4c6-89fe-4d7c-b9a2-6ff7b002e345</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;My suggestion is to connect a logic analyzer to the twi pins close to the nRF52840 and check the state of the pins when the issue occurs. I suspect that one or both of the pins are pulled low externally, which indirectly prevent the i2c transcation to finish.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>