<?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 use i2c1 of nrf5340?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71426/how-to-use-i2c1-of-nrf5340</link><description>I didn&amp;#39;t change nrf5340_cpuapp_common.dts, and I saw the macro definition of &amp;quot;i2c1&amp;quot; in &amp;quot;devicetree_unfixed.h,&amp;quot; but I called device_get_binding (DT_LABEL (DT_NODELABEL (i2c1)) and did return NULL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2021 15:06:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71426/how-to-use-i2c1-of-nrf5340" /><item><title>RE: How to use i2c1 of nrf5340?</title><link>https://devzone.nordicsemi.com/thread/293380?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 15:06:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c71d431f-ecc3-4c2a-a1ec-df487ae01154</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try setting&amp;nbsp;&lt;span&gt;CONFIG_I2C&lt;/span&gt;&lt;span&gt;=y in prj.conf. Then it should work. I just tested it.&amp;nbsp;&lt;/span&gt;&lt;span&gt;It is not enought to enable I2C in dts (hardware), you have to enable the software part/drivers as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>