<?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>Custom 52832 board, NRF Connect 2.4.0 - TWIM doesn&amp;#39;t work (TWI - does)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102173/custom-52832-board-nrf-connect-2-4-0---twim-doesn-t-work-twi---does</link><description>Hello, 
 I am trying to access I2C device - onboard Holyiot 21061 board. When setting in DT the compatibility to &amp;quot;nordic,nrf-twim&amp;quot; - I2C isn&amp;#39;t able to communicate with a device. I do not have an analyser, but all APIs return -EIO. In the output of I2C</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2023 16:07:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102173/custom-52832-board-nrf-connect-2-4-0---twim-doesn-t-work-twi---does" /><item><title>RE: Custom 52832 board, NRF Connect 2.4.0 - TWIM doesn't work (TWI - does)</title><link>https://devzone.nordicsemi.com/thread/438354?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 16:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fea0f836-6cbb-4bc8-ac09-aedc9089acfb</guid><dc:creator>Paskin</dc:creator><description>&lt;p&gt;Thanks a lot for the solution!&lt;/p&gt;
&lt;p&gt;It is a good idea to mention this point&amp;nbsp;in I2C part of the documentation. In general - it is quite hard to find a good samples for working with interfaces and sensors on top of device trees. As well as DevZone articles - many of them&amp;nbsp;explaining the behaviour of&amp;nbsp;legacy SDKs and sometimes &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20321/use-internal-nrf52-pull-up-w-twim"&gt;not applicable to a recent ones.&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 52832 board, NRF Connect 2.4.0 - TWIM doesn't work (TWI - does)</title><link>https://devzone.nordicsemi.com/thread/438337?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 14:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efac4540-1067-4868-bf81-527dbd1d170c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Both the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/drivers/i2c/i2c_nrfx_twi.c#L308"&gt;TWI&lt;/a&gt; and the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/drivers/i2c/i2c_nrfx_twim.c#L420"&gt;TWIM&lt;/a&gt; driver in Zephyr is set to skip GPIO configuration in the nrfx drivers. In order for TWI/TWIM to work properly, you need to enable pullup on the pins. This can be done using internal pull resistors, by setting &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840-pinctrl.dtsi#L15"&gt;bias-pull-up&lt;/a&gt;&amp;nbsp;property in the pinctrl devicetree. This is not set by default for the &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.3.99-ncs1/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832-pinctrl.dtsi#L26-L54"&gt;i2c nodes in nrf52dk_nrf52832 target&lt;/a&gt;, as the board will handle this automatically. This is likely the problem in your case, please try to add the bias-pull-up property to your overlay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 52832 board, NRF Connect 2.4.0 - TWIM doesn't work (TWI - does)</title><link>https://devzone.nordicsemi.com/thread/438324?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 14:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ed238b1-aef9-4de9-aa7c-96ea1e21093f</guid><dc:creator>Paskin</dc:creator><description>&lt;p&gt;Yes, it reproduces on at least one different (also custom) board.&lt;/p&gt;
&lt;p&gt;But I did some mixing and matching and found that channel one, where both SCL and SDA lines are pulled up via 10 k resistors -&amp;nbsp;works in both modes, and channel zero w/o external pull-ups - doesn&amp;#39;t.&amp;nbsp;Could it be the cause - say, TWI engages an internal pull-ups and TWIM has to be &amp;quot;told&amp;quot; to?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In your tests - were the lines pulled up?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom 52832 board, NRF Connect 2.4.0 - TWIM doesn't work (TWI - does)</title><link>https://devzone.nordicsemi.com/thread/438093?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 13:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e08659ef-eac0-4c1f-9166-e045319bfce0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you see the same issue if you add the devicetree changes to an overlay for a different board (e.g. nrf52dk_nrf52832 target)?&lt;/p&gt;
&lt;p&gt;Can you post your exact sample with the custom board files, along with screenshots of the steps used to reproduce the issue? I tried to add similar overlay to the nRF52 DK, but I&amp;#39;m not able to reproduce the issue you are describing:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:1024px;max-width:1024px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/2048x2048/__key/communityserver-discussions-components-files/4/i2c_5F00_shell_5F00_scan.png" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>