<?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 write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126480/i2c-write-restart-read-issue-on-nrf-connect-sdk-v3-2-x</link><description>Hello, 
 The following code performs an I2C write-restart-read operation that works correctly on a NRF52840 devkit with ncs v3.1.1, but fails with ncs v3.2.0 and v3.2.1. Note that this code works correctly on stock Zephyr versions v4.2.0 and v4.3.0, so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Jan 2026 13:50:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126480/i2c-write-restart-read-issue-on-nrf-connect-sdk-v3-2-x" /><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/559473?ContentTypeID=1</link><pubDate>Fri, 23 Jan 2026 13:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b929b01-b9ad-4554-93c7-df11c79f6239</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the fix for now as there is bug in the&lt;span&gt; &amp;quot;nordic,nrf-twi&amp;quot; driver in ncs v3.2.1.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/559311?ContentTypeID=1</link><pubDate>Wed, 21 Jan 2026 18:44:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14ad7338-dd9c-481f-8dbd-a5fbb01849b5</guid><dc:creator>mt37</dc:creator><description>&lt;p&gt;l6e1 only works if I either add your fix, or if I run an older version of the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/559301?ContentTypeID=1</link><pubDate>Wed, 21 Jan 2026 16:23:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f806f4fe-a555-484c-bed5-ec070b37d11e</guid><dc:creator>David Hoover</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thanks, that works! I am now observing the clock&amp;nbsp;reading from the RTC chip, and the error code is 0.&lt;/p&gt;
&lt;p&gt;Why does&amp;nbsp;&amp;#39;nordic,nrf-twi&amp;#39; work with previous versions of nRF Connect, and with all versions of Zephyr, but not with nRF Connect v3.2.x? Has the TWI driver been changed? Isn&amp;#39;t TWI a legacy implementation? Is this a bug that will be fixed?&lt;/p&gt;
&lt;p&gt;Why isn&amp;#39;t TWIM the default implementation in the nrf52840dk/nrf52840 board?&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;David&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/559282?ContentTypeID=1</link><pubDate>Wed, 21 Jan 2026 14:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d12492e6-9de3-4486-bce7-243c1418c67f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello mt37,&lt;/p&gt;
&lt;p&gt;Can you show me the error log?&lt;/p&gt;
&lt;p&gt;Did you try to add the fix I mentioned in my (compatible = &amp;quot;nordic,nrf-twim&amp;quot;;) reply? Also, you need to add bias-pull-up in the device tree file if you use internal pull-up resistor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/558889?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2026 12:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1065e383-7c89-4f45-8389-b0858d9b8406</guid><dc:creator>mt37</dc:creator><description>&lt;p&gt;I think I have the same issue on SDK 3.2.1. I&amp;#39;m trying to complete the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/topic/exercise-1-6-2/?version=v3.2.0-v3.0.0"&gt;nRF Connect SDK Fundamentals lesson 6 exercise 1&lt;/a&gt;, and it&amp;#39;s failing. My logic analyzer shows almost identical to yours. Address and single byte written get ACK, and then it returns with an error code, and lets the bus rise into &amp;quot;inactive&amp;quot; (no stop bit, no restart attempt).&lt;/p&gt;
&lt;p&gt;I tried adding debugging I2C with&amp;nbsp;CONFIG_I2C_LOG_LEVEL_DBG=y which didn&amp;#39;t give me answers. I tried disabling the SPI interfaces, I tried both I2C0 and I2C1 with no change. I ensured there are no device tree IO pin conflicts with the I2C pins. I tried&amp;nbsp;i2c_write_read_dt (from the exercise) as well as&amp;nbsp;i2c_write_dt, and both look good on the logic analyzer (including ACK), but both missing the restart/stop. I tried on both an nRF52832 and nRF52840. I even tried skipping the zephyr I2C drivers and configuring the registers directly with&amp;nbsp;nrfx_twim_init,&amp;nbsp;nrfx_twim_enable, and&amp;nbsp;nrfx_twim_xfer.&lt;/p&gt;
&lt;p&gt;After several days of frustration and trying to track it down, I realized it works perfectly well on SDK 3.1.1, so something must have broken at 3.2.0 and/or 3.2.1&lt;/p&gt;
&lt;p&gt;Edit: I also looked at the analog levels of the I2C signals to ensure they are crisp and well within voltage expectations, and even tried multiple sets of pullup resistors from ~910 ohms up to 10k ohms. Changing pullup resistors didn&amp;#39;t seem to make any difference in the outcome (still failed the same), although I could see the corresponding changes to the rise time of the signals on the oscilloscope. 10k looks a little weak for my setup, but on SDK 3.1.1 it still works perfectly fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/558777?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2026 10:04:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2825c90e-1800-456d-8dc9-e5e37bbdaf94</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try the following overlay to use the &amp;#39;&amp;#39;nordic,nrf-twim&amp;#39;&amp;#39; driver?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    status = &amp;quot;okay&amp;quot;;
    compatible = &amp;quot;nordic,nrf-twim&amp;quot;; &amp;lt;-- this line is added
    i2cclock: i2cclock@68 {
        compatible = &amp;quot;i2c-device&amp;quot;;
        label = &amp;quot;I2CCLOCK&amp;quot;;
        reg = &amp;lt;0x68&amp;gt;;
    };
};&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/558729?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 17:26:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10b59325-ec44-44ef-9327-f1507159d2f7</guid><dc:creator>David Hoover</dc:creator><description>&lt;p&gt;Hi, I am measuring the signals on P0.30 and P0.31.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t have an rv3028 RTC connected to these pins, it&amp;#39;s normal that it would fail in both cases. If you have another I2C peripheral handy, you can change the address in the device tree overlay (and&amp;nbsp;perhaps slightly adapt the main.c to read some other registers) and try with your own peripheral.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C write-restart-read issue on nRF Connect SDK v3.2.x</title><link>https://devzone.nordicsemi.com/thread/558698?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2026 12:34:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9f7dca-812a-4c9e-8c68-96e063cf2e9e</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have tried&amp;nbsp;your sample on nRF52840dk (with modified C&amp;nbsp;code and the device tree) for both NCS v2.1.1 and NCS v3.1.1. My system is windows.&lt;/p&gt;
&lt;p&gt;Overlay file name: nrf52840dk_nrf52840.overlay&lt;/p&gt;
&lt;p&gt;Build command: west build -p -b nrf52840dk/nrf5284&lt;/p&gt;
&lt;p&gt;The application built and flashed ok.&lt;/p&gt;
&lt;p&gt;I got same output for both version&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1768382957200v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;In your application, you choose i2c1, so the SDA and SCL pin should show the output on the pin P 0.30 and P0.21 according to nRF52840 board file.&lt;/p&gt;
&lt;p&gt;Can you please share which pins you are using for seeing SDA and SCL output on logic analyser?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>