<?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>nRF9160 dc I2C communication</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83248/nrf9160-dc-i2c-communication</link><description>hello, 
 I&amp;#39;m trying to do some I2C communication with nrf 9160 dk. I&amp;#39;m using Zephyr kernal and SEGGER SDK for program development. But when I compile the main.c file the result gives a error an in below noted. 
 Rebuilding ‘main.c’ from project ‘app/libapp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jan 2022 13:12:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83248/nrf9160-dc-i2c-communication" /><item><title>RE: nRF9160 dc I2C communication</title><link>https://devzone.nordicsemi.com/thread/345673?ContentTypeID=1</link><pubDate>Mon, 03 Jan 2022 13:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e26c16b-b606-4e24-958a-fba84076bb10</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1) It&amp;#39;s this file,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/include/drivers/i2c.h"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/include/drivers/i2c.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try to add&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#&lt;/span&gt;&lt;span&gt;include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;drivers/i2c.h&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;at top of your main.c file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;Also make sure you have&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;CONFIG_I2C=y&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;in prj.conf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>