<?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>How to enable I2C1 on NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109054/how-to-enable-i2c1-on-nrf9160</link><description>Hello, 
 I’m currently working on a project using the nRF9160 DK, Zephyr RTOS, and nRF Connect SDK. I’m trying to enable the I2C1 interface on the nRF9160 DK, but I’m encountering compilation errors. 
 Here’s the relevant part of my DTS overlay file:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Apr 2024 20:59:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109054/how-to-enable-i2c1-on-nrf9160" /><item><title>RE: How to enable I2C1 on NRF9160</title><link>https://devzone.nordicsemi.com/thread/479551?ContentTypeID=1</link><pubDate>Thu, 18 Apr 2024 20:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4851752d-dc66-463b-bfb2-f0f92c9327b4</guid><dc:creator>citole_n</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I came across the same error, this is likely caused by the fact that you are missing the property&amp;nbsp;&lt;code&gt;pinctrl-names&lt;/code&gt;&amp;nbsp;for &lt;code&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;i2c1 &lt;/code&gt;in your overlay.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In your case, add&amp;nbsp;&lt;code&gt;pinctrl-names = &amp;quot;default&amp;quot;;&lt;/code&gt; in&amp;nbsp;&lt;code&gt;&amp;amp;i2c1&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
    ...
    pinctrl-names = &amp;quot;default&amp;quot;; // Add this
    ...
}&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable I2C1 on NRF9160</title><link>https://devzone.nordicsemi.com/thread/472980?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2024 14:23:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e0f09a-4ec2-42e6-8642-0a3d66a8f4e6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you would like me to have a look, please upload the entire application (zip the application folder, and upload it), so that I can build and get the same output that you are seeing.&lt;/p&gt;
&lt;p&gt;And I also recommend you check out the &lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-6-serial-com-i2c/"&gt;SDK fundamentals course in the Nordic DevAcademy&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Particularly Lesson 6 is relevant, where they describe how to set up an I2C peripheral in NCS from scratch. I believe that if you follow that, you will be able to build without build errors.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>