<?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>I2C si7055</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71496/i2c-si7055</link><description>I have an si7055 i2c temperature sensor connected to an nRF52840 
 I&amp;#39;ve tried my best to get a reading, but failed. 
 Therefore given up. 
 I&amp;#39;d be grateful for some help to determine what I&amp;#39;ve done wrong please. 
 I&amp;#39;ve included the project in zipped form</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Feb 2021 08:33:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71496/i2c-si7055" /><item><title>RE: I2C si7055</title><link>https://devzone.nordicsemi.com/thread/293903?ContentTypeID=1</link><pubDate>Thu, 11 Feb 2021 08:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db77a94c-6e1c-407b-9262-c541799deab7</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Ok, fixed it.&lt;/p&gt;
&lt;p&gt;Very simple, miscommunication with our engineer regarding the SCL and SDA pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C si7055</title><link>https://devzone.nordicsemi.com/thread/293862?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 19:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6df350b0-7096-4582-b87a-364d160378a5</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Unfortunately I do not have a logic analyzer.&lt;/p&gt;
&lt;p&gt;I am running the code on SDK v1.4.2&lt;/p&gt;
&lt;p&gt;I modified si7055.c which is why i2c master found is displayed in the following output. However I receive the same message if I change the address of the sensor in the overlay. I have checked that the correct address&amp;nbsp;is recorded&amp;nbsp;in zephyr.dts&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;d be grateful if you would check that the overlay included in the project is correctly recording:&lt;/p&gt;
&lt;p&gt;SDA 24&lt;/p&gt;
&lt;p&gt;SCL 25&lt;/p&gt;
&lt;p&gt;si7055 address 0x40&lt;/p&gt;
&lt;p&gt;Therefore I&amp;#39;m expecting that regardless of what the logic analyzer is showing you that the call to si7055_init will confirm that the sensor is present.&lt;/p&gt;
&lt;p&gt;static int si7055_init(const struct device *dev)&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt; struct si7055_data *drv_data = dev-&amp;gt;data;&lt;/p&gt;
&lt;p&gt;drv_data-&amp;gt;i2c_dev = device_get_binding(&lt;br /&gt; DT_INST_BUS_LABEL(0));&lt;/p&gt;
&lt;p&gt;if (!drv_data-&amp;gt;i2c_dev) {&lt;br /&gt; LOG_ERR(&amp;quot;i2c master not found.&amp;quot;);&lt;br /&gt; return -EINVAL;&lt;br /&gt; } else {&lt;br /&gt; printk(&amp;quot;i2c master found\n&amp;quot;);&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;LOG_DBG(&amp;quot;si7055 init ok&amp;quot;);&lt;/p&gt;
&lt;p&gt;return 0;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;i2c master found&lt;br /&gt;*** Booting Zephyr OS build v2.4.0-ncs2 ***&lt;br /&gt;[00:00:03.000,396] [1;31m&amp;lt;err&amp;gt; i2c_nrfx_twim: Error 195952641 occurred for message 0[0m&lt;br /&gt;[00:00:03.000,427] [1;31m&amp;lt;err&amp;gt; si7055: read register err[0m&lt;br /&gt;sample fetch error&lt;br /&gt;[00:00:06.000,671] [1;31m&amp;lt;err&amp;gt; i2c_nrfx_twim: Error 195952641 occurred for message 0[0m&lt;br /&gt;[00:00:06.000,671] [1;31m&amp;lt;err&amp;gt; si7055: read register err[0m&lt;br /&gt;[&lt;/p&gt;
&lt;p&gt;There seem to be a few issues with the sensor.h implementation as indicated in the following 2 links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70514/i2c_burst_read-and-i2c_burst_write-not-working-on-nrf5340"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/70514/i2c_burst_read-and-i2c_burst_write-not-working-on-nrf5340&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69828/i2c_burst_write-difference-nrf52-and-nrf91-series/290657#290657"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/69828/i2c_burst_write-difference-nrf52-and-nrf91-series/290657#290657&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I2C si7055</title><link>https://devzone.nordicsemi.com/thread/293804?ContentTypeID=1</link><pubDate>Wed, 10 Feb 2021 14:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:977ddf8f-7f81-47b5-bdc2-2c2140fef79d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you explain a bit more what is failing and what you have tried?&lt;/p&gt;
&lt;p&gt;I do not have the sensor available, so I cannot fully test your example, but I did connect a logic analyzer to verify that a write setup for address 0x40 is output on the TWI bus. A NACK is received, as the sensor is not connected.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1280x640/__key/communityserver-discussions-components-files/4/Si7055_5F00_I2C_5F00_sensor_5F00_logic.png" /&gt;&lt;/p&gt;
&lt;p&gt;Have you checked the bus on your end with a logic analyzer, to see what happens?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>