<?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>I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30132/i2c-reads-stuck</link><description>Hi, I&amp;#39;m having an I2C read lock-up issue similar to those described here , here , and here . 
 I&amp;#39;m using SES, SDK14.1, and an nRF52382. The only other component on the I2C bus is an ST Micro LSM6DSMTR IMU. I&amp;#39;m using the TWIM library - I&amp;#39;ve implemented</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Mar 2018 13:04:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30132/i2c-reads-stuck" /><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/124989?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 13:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054fbdd6-adbd-406e-b544-7144ffb9e081</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe you are closing in to the real problem here, I think it is slightly undefined what happens if you try to unint() the twi module during a transaction, and could explain you issue. However, have you tried to Power OFF and ON again the twi peripheral between uninit() and init()? This can be done writing 0 and 1 to register&amp;nbsp;0xFFC in the twi peripheral instance you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/124430?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 16:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5382174d-1af6-4973-9566-3ca802f5d5c2</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; One issue is that my timeout (the callback function provided to TWI_Perform) is short.&amp;nbsp; When the timer expires, I uninit and re-init the TWI module.&amp;nbsp; It would be nice if the TWI module would finish the byte in progress before stopping, but maybe its clock is being taken away?&amp;nbsp; I plan to look at this a little more in a few days - I think I saw this issue without the timer expire previously.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/124381?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 13:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd63ddb-254b-404e-b833-d40d1a261644</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can recreate what you are experiencing here, but I am not sure what is happening. It seems to be an issue with the twi manager, so it may be that you will need to use the twi driver directly and/or re-init the twi manager between transacations. I think it may have something to do with twi que overflow, because suddenly the twi configuration is corrupt (e.g. scl pin# is invalid causing hardfault).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/123127?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 16:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da755d5a-f080-4795-ac0e-8dfc75b50886</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Attached is a picture of my DK/MPU setup.&amp;nbsp; I installed the right-angle header provided with the MPU and carefully bent the VCC pin out.&amp;nbsp; I then installed the MPU into connector P16 and jumpered over VCC from connector P13.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/mpu_5F00_devkit.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/122068?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 09:15:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acc1a8e5-dc2c-4895-a536-1ac1b148c07f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi, I have ordered the same module just to ensure we have the same hardware. Eta next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/121555?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 15:33:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52672874-9f61-407d-9e8f-d601660ded44</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Kenneth,&amp;nbsp; I&amp;#39;m uploading a project that can be used to recreate the issue.&amp;nbsp; The README provides more details&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1881.Debug_5F00_Test.zip"&gt;devzone.nordicsemi.com/.../1881.Debug_5F00_Test.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/120912?ContentTypeID=1</link><pubDate>Wed, 14 Feb 2018 23:40:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2113efa-bcad-49c4-aaec-254a1168c179</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I&amp;#39;ve been delayed slightly - will get back to this in about a week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/120002?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 17:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2f95a3-349d-49e4-9406-f8deb7626fe5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Maybe you have an I2C EEPROM you can use for test? Or you may emulate an I2C EEPROM using the SDK example:&lt;br /&gt;\nRF5_SDK_14.2.0_17b948a\examples\peripheral\twi_master_with_twis_slave&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/119992?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 16:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c2b092-dcd9-4789-90a8-77b32b4ef5c6</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Hi Kenneth,&amp;nbsp; I ordered a mpu6050 module like&lt;a href="https://www.amazon.com/gp/product/B01DK83ZYQ/ref=oh_aui_detailpage_o00_s00?ie=UTF8&amp;amp;psc=1"&gt; this one&lt;/a&gt;.&amp;nbsp; I won&amp;#39;t have HW until this weekend, so I&amp;#39;ll upload a project next week.&amp;nbsp; It will probably be based on &amp;quot;twi_master_using_twi_mngr&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/119850?ContentTypeID=1</link><pubDate>Tue, 06 Feb 2018 04:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fddab2-78a1-494c-876e-7c8a0ab37cca</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Kenneth,&amp;nbsp; I was hoping that the dev kit would have an I2C peripheral onboard, but it doesn&amp;#39;t appear to.&amp;nbsp; Do you have any suggestions for adding an I2C peripheral to the dev kit?&amp;nbsp; Or some other simple test setup?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/119815?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 17:31:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25f056b-c0cd-46d9-a781-a076981d2d3b</guid><dc:creator>Jason Hendrix</dc:creator><description>&lt;p&gt;Hi Kenneth.&amp;nbsp; I should have a dev kit in the next couple of days.&amp;nbsp; In the meantime I&amp;#39;ll try to prepare an example to recreate the issue.&amp;nbsp; I think I can recreate it by mixing twim_schedule with twim_perform, as described here:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30169/nrf_twi_mngr_perform-blocking"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30169/nrf_twi_mngr_perform-blocking&lt;/a&gt;.&amp;nbsp; Obviously I shouldn&amp;#39;t be providing bad transfer descriptors, but the question remains - why didn&amp;#39;t the transaction finish?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C Reads Stuck</title><link>https://devzone.nordicsemi.com/thread/119813?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 17:26:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87d0a3de-fdfe-429a-9eee-84693789856e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Typically our list of known issues for each SDK release are updated with issues that are not fixed:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/29796/what-are-sdk-14-x-0-known-issues"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/29796/what-are-sdk-14-x-0-known-issues&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The issue here seems to be new for this SDK release.&lt;/p&gt;
&lt;p&gt;Do you experience the same&amp;nbsp;when using either&amp;nbsp;twi manager or twi driver directly, as reference:&lt;br /&gt;\nRF5_SDK_14.2.0_17b948a\examples\peripheral\twi_master_using_nrf_twi_mngr&amp;nbsp;&lt;br /&gt;\nRF5_SDK_14.2.0_17b948a\examples\peripheral\twi_sensor&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you modify the \twi_sensor example so I may recreate it here?&lt;br /&gt;&lt;br /&gt;Kenneth&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>