<?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>How to isolate a broken I2C chip and keep the system running?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57337/how-to-isolate-a-broken-i2c-chip-and-keep-the-system-running</link><description>Hi, 
 I&amp;#39;m using nrf52832 (SDK 15.3). And I have 24 chips on the same I2C bus. They all work fine right row. But if one of the chip is broken, the whole system will crash. Is there a good way to detect which chip is dead and isolate it, so that the system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Feb 2020 13:01:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57337/how-to-isolate-a-broken-i2c-chip-and-keep-the-system-running" /><item><title>RE: How to isolate a broken I2C chip and keep the system running?</title><link>https://devzone.nordicsemi.com/thread/232564?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 13:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1109ddb9-3ee2-479e-8c70-4e79e4fb32ed</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;A method suggested by Kenneth will help in a most lucky case when some chip just stopped to respond. But if a broken chip locks the bus, you have no way to isolate it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In one of my projects (there was an i2c bus with hot-plug components), in case of any bus error I&amp;#39;m sending 16 CLK pulses then STOP condition, then scanning for topology changes. Though it doesn&amp;#39;t help when attaching a broken device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to isolate a broken I2C chip and keep the system running?</title><link>https://devzone.nordicsemi.com/thread/232536?ContentTypeID=1</link><pubDate>Tue, 04 Feb 2020 12:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eccc4430-7f8d-46f0-9a1a-a895f00aecca</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest to simply add/start a timeout timer to each twi transfer operation, then in case of timeout you can uninit() and init() the twi peripheral again. Then you can choose to try again a few times before you&amp;nbsp;consider it as &amp;quot;dead&amp;quot;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>