<?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>NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80415/ncs-1-7-0-zephryr-how-can-i-the-recovery-i2c-bus-is-blocked</link><description>HI, 
 how can I the recovery I2C bus is blocked. , SDA line low state? 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Oct 2021 12:32:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80415/ncs-1-7-0-zephryr-how-can-i-the-recovery-i2c-bus-is-blocked" /><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/334147?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 12:32:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:797c0bf0-4a43-4581-8b00-46ea271dd104</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can confirm this will be supported, but I don&amp;#39;t have a timeline yet, likely 1.8 release.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333525?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 12:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07fa8ed3-4db7-421d-a2b5-f0e4ed3ac8ff</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have created an internal jira to look into implementing support for the i2c_recover_bus() api. In the meantime I don&amp;#39;t have a good solution than to not use the zephyr api, but instead us the nrf_twim api directly. I can see this was also suggested in the linked case.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333446?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 10:39:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357099ab-4c69-4d68-92dc-731276b8b54e</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;How close opened i2c device? in ncs zephyr?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333445?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 10:37:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fc845dc-3632-4d0b-ad13-c5f6bc0f0119</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Is there an alternative to ncs tools as a development environment?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333436?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 10:02:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cf7ebf0-41b5-45a6-aded-ab2017f2065e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I was not aware you were using ncs, in that case this discussion may be helpful to find a workaround (different chip, but same problem):&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74731/nrf9160-i2c-twi-recovery-and-microsecond-resolution-timer"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/74731/nrf9160-i2c-twi-recovery-and-microsecond-resolution-timer&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333051?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 12:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7118b00-ff29-4984-94c4-724ac561afe0</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;in which file do I find nrf_drv_twi_init ()&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;do you have an example of how to use the uninit and init?&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I have recently used this micro and ncs.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Fausto&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333033?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 12:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51c69012-5d4d-425f-b4d0-f1ab7987a39c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you look at the implementation of&amp;nbsp;nrf_drv_twi_init() you can find there is a:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    if(p_config-&amp;gt;clear_bus_init)
    {
        /* Send clocks (max 9) until slave device back from stuck mode */
        twi_clear_bus(p_config);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;So I recommend to try to uninit, then init with the clear_bus_init flag set to true.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/333010?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 11:30:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb359866-aef9-420a-bbc8-10274d8172af</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;The nRF52832 is the master, and I have accelerometer, touch and heart rate sensor on the same bus.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt; &lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I don&amp;#39;t know why it hangs but the sda line stays down and I get communication error, red message from the system.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;I think it is one of the three sensors that is waiting for the clock.&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="VIiyi" lang="en"&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;How do I get a series of pulses out on the SCL line when this happens?&lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b"&gt;&lt;span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span class="JLqJ4b ChMk0b"&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Fausto&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS 1.7.0 Zephryr how can I the recovery I2C bus is blocked.</title><link>https://devzone.nordicsemi.com/thread/332985?ContentTypeID=1</link><pubDate>Thu, 07 Oct 2021 10:47:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b78ead06-e509-46c3-8082-80b44fa79791</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Think we need a bit more information, for instance when does this occur? is it when you initializing the i2c, or at the end or middle of a i2c transfer? is the nrf52 operating in master or slave mode? is it the nrf52 that is holding the sda low? I suspect you typically need to uninit and init the i2c again to recover.&lt;/p&gt;
&lt;p&gt;If necessary you can also turn the i2c off an on while unitiialized by writing to the power register shown here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_89.html"&gt;https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_89.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>