<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120066/i2c</link><description>Title: Issue with I2C (TWI) Communication on nRF52840 (SDK 16, Segger 8.2a) 
 
 Description: 
 I am working with the nRF52840 using nRF SDK 16 in Segger Embedded Studio 8.2a. As I am new to the SDK, I started with an I2C (TWI) scanner code to detect my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Mar 2025 09:37:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120066/i2c" /><item><title>RE: I2C</title><link>https://devzone.nordicsemi.com/thread/529002?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 09:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bf92284-aadb-4c72-bd05-485f6360ec3f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am glad to hear you resolved the first issue. When switching to the nRF Connect SDK I recommend going through the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;nRF Connect SDK Fundamentals&lt;/a&gt;&amp;nbsp;course. This takes about a day, but will get you started with all the tools and the basic understanding of how to work with the SDK. At a later point, I also recommend going through &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/"&gt;nRF Connect SDK Intermediate&lt;/a&gt;&amp;nbsp;which covers more advanced topics. Other than that, the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.1/page/nrf/index.html"&gt;SDK documentation&lt;/a&gt;&amp;nbsp;is quite extensive.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C</title><link>https://devzone.nordicsemi.com/thread/528960?ContentTypeID=1</link><pubDate>Wed, 26 Mar 2025 06:19:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff0feb6e-2cff-4720-a750-a5d67644158d</guid><dc:creator>Himanshu_flexe</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for the reply .&lt;br /&gt;&lt;br /&gt;i resolve the isssue of SDA and scl not toggling&amp;nbsp; ,&amp;nbsp; i am using nrf52840 DK , it&amp;nbsp; was the issue in my code now i m am usimng P0.27&amp;nbsp; and P90.26 for SCL and SDA but stiil it is not able to detect&amp;nbsp; my htdu sensor&amp;nbsp; whose adress is 0X40 .&lt;br /&gt;As suggested by you i will switch to nrf connect sdk , can you tell me or share me resources how to learn it efectively beacuse it take lot of time to me understnd it and sometime i get overwhelmed with the tyhing not working&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C</title><link>https://devzone.nordicsemi.com/thread/528627?ContentTypeID=1</link><pubDate>Mon, 24 Mar 2025 13:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:806442da-5928-4854-a330-0daaf935c70d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all I would like to mention that if you are new to the SDK and that means that you are starting new development now, I would advice using the nRF Connect SDK instead of the old nRF5 SDK. See &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/nrf-connect-sdk-and-nrf5-sdk-statement"&gt;nRF Connect SDK and nRF5 SDK statement&lt;/a&gt;.&lt;/p&gt;
[quote user=""]When probing the SDA and SCL lines, both remain at 3.3V (high state).[/quote]
&lt;p&gt;Can you disconnect the sensor and meaure on the pins directly just to verify that there is not an issue externally?&lt;/p&gt;
[quote user=""]Why is the SCL line not toggling?[/quote]
&lt;p&gt;Good question. Can you share how you configure the pins so that we see that the correct pins are used? Are you using a custom board or the DK? If custom board, could it be that there is a soldering or some other routing issue? Do you have logging showing relevant information, and have you for instance cheked what is happening with a debugger?&lt;/p&gt;
[quote user=""]Do I need to configure any additional settings in sdk_config.h or modify my TWI initialization?[/quote]
&lt;p&gt;Internall pull resistors are normally enough for lower speeds, but for higher speeds external pull resistors may be needed. That should not be the main issu ehere though, as you report measuring a constant high voltage as I read it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>