<?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>SDK 1.6.1 nRF52832  I2C on pin 0.6 an 0.7</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79634/sdk-1-6-1-nrf52832-i2c-on-pin-0-6-an-0-7</link><description>Hello, 
 I am using the pine watch hardware, to do some tests, 
 I configured through the overlay file, the I2C_1 to use pins 0.6, 0.7 as shown below, 
 &amp;amp;i2c1 { compatible = &amp;quot;nordic,nrf-twi&amp;quot;; status = &amp;quot;okay&amp;quot;; label=&amp;quot;I2C_1&amp;quot;; sda-pin = &amp;lt;6&amp;gt; ; scl-pin = </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Sep 2021 13:59:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79634/sdk-1-6-1-nrf52832-i2c-on-pin-0-6-an-0-7" /><item><title>RE: SDK 1.6.1 nRF52832  I2C on pin 0.6 an 0.7</title><link>https://devzone.nordicsemi.com/thread/330702?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 13:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6acfe71-bc15-41dd-bcd2-bf1e579bcf0d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I think you will need to use some other pins than 6 and 7 for SDA and SCL. These pins are already being used according to &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52832_dk%2FUG%2Fnrf52_DK%2Fhw_conn_interf.html"&gt;documentation&lt;/a&gt;;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P0.05&lt;/span&gt;, &lt;span&gt;P0.06&lt;/span&gt;, &lt;span&gt;P0.07&lt;/span&gt;, and &lt;span&gt;P0.08&lt;/span&gt; are by default used by the UART connected to the interface MCU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 1.6.1 nRF52832  I2C on pin 0.6 an 0.7</title><link>https://devzone.nordicsemi.com/thread/329749?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 08:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cbe0cba-7399-4a3c-b746-ca7efff583a9</guid><dc:creator>Fb62</dc:creator><description>&lt;p&gt;HI whit DK I see only the data, in custom board (pine watch hardware)&amp;nbsp; the following code, not found any device, in the bus&lt;/p&gt;
&lt;p&gt;i2c_dev = device_get_binding(&amp;quot;I2C_0&amp;quot;);&lt;br /&gt; if (!i2c_dev) {&lt;br /&gt; printk(&amp;quot;Binding failed\n&amp;quot;);&lt;br /&gt; return;&lt;br /&gt; }&lt;br /&gt; // RTC_Start();&lt;br /&gt; i2c_configure(i2c_dev, I2C_SPEED_SET(I2C_SPEED_STANDARD) | I2C_MODE_MASTER);&lt;/p&gt;
&lt;p&gt;printk(&amp;quot;The I2C scanner started\n&amp;quot;);&lt;br /&gt; for (uint8_t i = 4; i &amp;lt;= 0x7F; i++) {&lt;br /&gt; struct i2c_msg msgs[1];&lt;br /&gt; uint8_t dst = 1;&lt;/p&gt;
&lt;p&gt;msgs[0].buf = &amp;amp;dst;&lt;br /&gt; msgs[0].len = 1U;&lt;br /&gt; msgs[0].flags = I2C_MSG_WRITE | I2C_MSG_STOP;&lt;br /&gt; &lt;br /&gt; error = i2c_transfer(i2c_dev, &amp;amp;msgs[0], 1, i);&lt;br /&gt; // i2c_transfer();&lt;br /&gt; if (error == 0) {&lt;br /&gt; printk(&amp;quot;\n0x%2x FOUND\n&amp;quot;, i);&lt;br /&gt; }&lt;br /&gt; else {&lt;br /&gt; printk(&amp;quot;error %d \n&amp;quot;, error);&lt;br /&gt; }&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt; printk(&amp;quot;\nEND Scan I2C&amp;quot;);&lt;/p&gt;
&lt;p&gt;in prj.conf&lt;/p&gt;
&lt;p&gt;# Setting for I2C&lt;br /&gt;CONFIG_I2C=y&lt;br /&gt;CONFIG_I2C_0=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in the overlay file&lt;/p&gt;
&lt;p&gt;&amp;amp;i2c0 {&lt;br /&gt; compatible = &amp;quot;nordic,nrf-twim&amp;quot;;&lt;br /&gt; status = &amp;quot;okay&amp;quot;;&lt;br /&gt; sda-pin = &amp;lt;6&amp;gt;;&lt;br /&gt; scl-pin = &amp;lt;7&amp;gt;;&lt;br /&gt; clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;; &lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 1.6.1 nRF52832  I2C on pin 0.6 an 0.7</title><link>https://devzone.nordicsemi.com/thread/329744?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 08:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da8ffdfa-f5a6-4cb2-8e80-d581b1e152fa</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;what kind of hardware are you testing this on? Is it a DK or custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>