<?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>BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108691/bme280-sample-test-with-nrf5-connect-sdk-and-visual-studio-code-i2c-driver-initialization-failed-chip-id-read-failed--5</link><description>Hi, 
 I am doing BME280 sample Application test with nrf connect SDK v2.5.2 but when I am flashing the code, In serial terminal (Putty) I am facing issue Device BME280 is not ready; check the driver Initialization logs for errors and chip_id read failed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Feb 2024 06:53:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108691/bme280-sample-test-with-nrf5-connect-sdk-and-visual-studio-code-i2c-driver-initialization-failed-chip-id-read-failed--5" /><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/471186?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 06:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa61b14-13a6-43b9-b064-e1ad4e8bfac7</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Do you have access to a logic analyzer or a scope? It would be helpful to see if there is any communication on your pins. It should work out of the box.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you do any changes to the sample other then to select build target?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/471167?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 04:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f684bc-7c3b-49f2-aaf8-009cf45de8be</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have created the correct tool chain only v2.5.2 and I did try with another PC for v1.6. So, there is no sdk conflicts. So, can you please, help me with it why it is not working in v2.5.2.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; regards,&lt;/p&gt;
&lt;p&gt;Shaik Jareena.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470999?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 12:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:841f9441-2506-4a12-8a5d-c1750d32cc82</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Did you create the project in v2.5.2 with the correct toolchain? There has been a lot of updates to the SDK since V1.6 which would break the sample you tried to run something made in v1.6 in v2.5.2.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470979?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 10:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f23a7d1-846c-4dcd-b373-1f13ff27f082</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried with BME280 Sample only with nrf Connect SDK and VS code and with V1.6 it is working same code is not working for V2.5.2.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, do you use the same project for both NCS v1.6 and V2.5.2?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, same project only I am used for both NCS v1.6 and V2.5.2 but it is working in v1.6 but in v2.5.2 i am facing errors as above I have mentioned.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks &amp;amp; Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Shaik Jareena.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470978?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 10:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca834d6-3792-44cb-8ba2-a657ebd0a586</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Okey thank you. Could you try the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/sensor/bme280/README.html"&gt;BME280 Sample&lt;/a&gt; and see if it works for you?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, do you use the same project for both NCS v1.6 and V2.5.2?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470972?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 10:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef94f3ae-487c-4562-b7ef-47ae33f9357e</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Without making the change by placing twi only it works in v1.6 by adding below mentioned llines of configuration&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c0 {
    status = &amp;quot;okay&amp;quot;;
     bme280@76 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		reg = &amp;lt;0x76&amp;gt;;
		label = &amp;quot;BME280&amp;quot;;
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But in v2.5.2 sdk it is not working.&lt;/p&gt;
&lt;p&gt;And I have tried with register address 0X77 but same error is showing in serial terminal (Putty).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Shaik Jareena.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470966?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 09:45:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45c39d95-713b-486b-9f39-fbb8ffd7aef1</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Just to make sure that I understand correctly&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After the change it works for NCS v1.6, but it does not work for NCS 2.5.2?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using one of the samples for the sensor or is this code you have developed?&amp;nbsp;&amp;nbsp;&lt;br /&gt;Could you also try to change address id to 0x77?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470952?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 08:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aefd5e4-c7f3-42b8-9b4b-97b493a6a936</guid><dc:creator>Jareena</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;
&lt;p&gt;I have changed from twi to twim&amp;nbsp;compatible = &amp;quot;nordic,nrf-twim&amp;quot;; at that time I am facing errors and with version v1.6.0 in nrf connect SDK and with vs code it is working but in v2.5.2 it is not working and same issue iam getting in serial terminal.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.751,434] &amp;lt;err&amp;gt; i2c_nrfx_twi: Error on I2C line occurred for message 0
[00:00:00.751,525] &amp;lt;dbg&amp;gt; BME280: bme280_chip_init: ID read failed: -5
*** Booting nRF Connect SDK v2.5.2 ***

Error: Device &amp;quot;BME280&amp;quot; is not ready; check the driver initialization logs for errors.



&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shaik Jareena.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BME280 sample test with nrf5 connect SDK and Visual studio code I2c driver initialization failed chip Id read failed: -5</title><link>https://devzone.nordicsemi.com/thread/470921?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 06:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0b8c75-7cf7-466d-9e0e-df45b65db26a</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Jareena&lt;/p&gt;
&lt;p&gt;Could you try to change&amp;nbsp;your overlay to&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;i2c0 {
	compatible = &amp;quot;nordic,nrf-twim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;

	bme280@76 {
		compatible = &amp;quot;bosch,bme280&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		label = &amp;quot;BME280&amp;quot;;
		reg = &amp;lt;0x76&amp;gt;;
		
	};
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You could check what suggested here&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/75770/i2c_nrfx_twi-error-0x0bae0001-occurred-for-message-0"&gt;i2c_nrfx_twi: Error 0x0BAE0001 occurred for message 0&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The following from the BME280 DS worth noting&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1709017050883v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>