<?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 clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840</link><description>Hello ! I would like to know if the nrf52840 is affected by the errata https://infocenter.nordicsemi.com/topic/errata_nRF52832_Rev2/ERR/nRF52832/Rev2/latest/anomaly_832_149.html#anomaly_832_149 or something similar ? (I did not find it in the 52840 errata</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2026 10:15:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48166/i2c-clock-stretching-on-nrf52840" /><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/565816?ContentTypeID=1</link><pubDate>Mon, 04 May 2026 10:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96ea1958-325a-402c-a135-9d10879fe4ff</guid><dc:creator>Daniel Dakhno</dc:creator><description>&lt;p&gt;You said that the spec has been updated. What phrase exactly should I search for?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/360662?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2022 06:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef6defad-4520-413d-8644-aec8fcf358ea</guid><dc:creator>mahi354</dc:creator><description>&lt;p&gt;Hello, sir.&lt;/p&gt;
&lt;p&gt;We&amp;#39;re having the same problem with our io extender. We&amp;#39;re trying to communicate using the bit bagging approach, but it&amp;#39;s not working. We checked the clock signals and they&amp;#39;re all good, but the slave isn&amp;#39;t giving ack bits.&lt;/p&gt;
&lt;p&gt;please look once&amp;nbsp; i sharing the signals&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/IMG20220330113533.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;D:\DeviceDownload\nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\components\drivers_nrf\twi_master\deprecated&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the SDK 17.1.0, and I&amp;#39;m not sure if this driver requires any adjustments to those files to make it work?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;can please suggest the what could be the issue with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/190875?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 15:26:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae1b359d-6c10-4393-af00-fa9feb6011b4</guid><dc:creator>MCA</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Any plans to update the specs/errata to show that TWI and TWIM share the same issue ?&lt;br /&gt;&lt;br /&gt;Anyway, I adapted the bigbang driver from the sdk (&lt;em&gt;deprecated/twi_sw_master.c&lt;/em&gt;) to my codebase.&lt;br /&gt;It also had a bug on the 1st clock after a stretch, the fix was trivial though.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	// Pull SCL high and wait a moment for SDA line to settle
	// Make sure slave is not stretching the clock
	transfer_succeeded &amp;amp;= twi_master_wait_while_scl_low(bus);
	TWI_DELAY(); //hack&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;The clock stretching is now working as expected.&lt;br /&gt;I am making this public in case it can help someone else.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Mathieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/190874?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 08:06:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a862cb29-2ca6-4b5e-a5aa-a537fd04f9b4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It was worth a test, but then it looks like this timing is indeed in hardware on both the legacy and Easydma, and can&amp;#39;t be changed no. I assume you have two options, either use a bit bang software I2C implementation and/or look into whether a different serial interface may be used (and/or switch direction of the interface in some way).&lt;/p&gt;
&lt;p&gt;Sorry for this, but it is the first I have heard that this have caused an third party device to actually fail.&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><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/190873?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 16:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f551613f-a0d9-452b-b9de-7d6ba4750537</guid><dc:creator>MCA</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Kenneth,&lt;br /&gt;&lt;br /&gt;It took some time because we are not directly using the sdk, but I finally managed to use the twi without easy DMA.&lt;br /&gt;Now I use nrfx_twi.c, (slightly modified to be able to compile with the rest of our codebase)&lt;br /&gt;&lt;br /&gt;However, I can still see the same bug, the 1st clock after a stretch is sometimes 4 times smaller than it should be.&lt;br /&gt;The device I am communicating with (CY8C95x0A) really&amp;nbsp;does not like that and behave like it is missing the shortened clock.&lt;br /&gt;&lt;br /&gt;(I can provide some screenshots if required)&lt;br /&gt;&lt;br /&gt;Am I missing something ? Any workarround would be appreciated.&lt;br /&gt;&lt;br /&gt;Best Regards,&lt;br /&gt;Mathieu&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C clock stretching on nrf52840</title><link>https://devzone.nordicsemi.com/thread/190872?ContentTypeID=1</link><pubDate>Wed, 29 May 2019 14:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92a7b946-024a-467d-bc71-4fab97357d94</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;same applies to the nRF52840, but the documentation (product spec) should have been updated to reflect this, so no specific errata is made.&lt;/p&gt;
&lt;p&gt;The TWI hardware and driver should be able to operate in two modes, with and without EasyDMA. Have you tried to disable&amp;nbsp;TWI0_USE_EASY_DMA and/or&amp;nbsp;TWI1_USE_EASY_DMA?&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>