<?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>Errors when using BME680 Sample Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88912/errors-when-using-bme680-sample-code</link><description>Hi, 
 I am trying to run the sample code for the BME680 sensor over I2C. 
 I am using the sample code as is; the only modification is my overlay file to define the I2C pins as below. 
 
 when i try to build, I get a whole host of errors...... 
 
 Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jun 2022 16:33:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88912/errors-when-using-bme680-sample-code" /><item><title>RE: Errors when using BME680 Sample Code</title><link>https://devzone.nordicsemi.com/thread/372440?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 16:33:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f259fad-cdc3-4f69-8e8c-98c1b7416f59</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I managed to get it working. I updated my overlay file to remove the gpios as below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c1 {
/delete-property/sda-gpios;
/delete-property/scl-gpios;
};

&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;	
	status = &amp;quot;okay&amp;quot;;
	sda-pin = &amp;lt;17&amp;gt;;
	scl-pin = &amp;lt;20&amp;gt;;
	clock-frequency = &amp;lt;I2C_BITRATE_STANDARD&amp;gt;;
	bme680@77 {
		compatible = &amp;quot;bosch,bme680&amp;quot;;
		reg = &amp;lt;0x77&amp;gt;;
		label = &amp;quot;BME680&amp;quot;;
	};
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This has enabled it to work. I am not sure why I had to explicitly disable the sda and scl pins but it works!&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when using BME680 Sample Code</title><link>https://devzone.nordicsemi.com/thread/372433?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 15:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:041ae8cb-5562-46a1-a7a9-5fd9caa415af</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;Im using the latest, 2.0.0. I forgot to mention,I &amp;nbsp;am using the nRF52840dongle.&lt;/p&gt;
&lt;p&gt;This is code that I have used previously and it did work on older releases.&lt;/p&gt;
&lt;p&gt;Rod&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when using BME680 Sample Code</title><link>https://devzone.nordicsemi.com/thread/372386?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 12:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63b9d2b-d7ae-4138-9904-034f85417566</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Which version of NCS are you using? It seems that you have both sda-pin and sda-gpios defined for your i2c node.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Errors when using BME680 Sample Code</title><link>https://devzone.nordicsemi.com/thread/372228?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 21:41:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8147a61-4f7e-4beb-b303-0470bac80348</guid><dc:creator>RodWatt</dc:creator><description>&lt;p&gt;PS I have tried using i2c1 and i2c2. I have also tried reg 77; all suggestions I found on the forum. No joy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>