<?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>NRF9160DK i2c device no response</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118899/nrf9160dk-i2c-device-no-response</link><description>Evaluating direct access I2C operation with the NRF9160DK. I have a INA219 connected to pin 30 &amp;amp; pin 31. I am aware that there is a zephyr driver for the INA219, but I want to test direct I2C operation until the replacement device can be implemented.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Feb 2025 16:36:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118899/nrf9160dk-i2c-device-no-response" /><item><title>RE: NRF9160DK i2c device no response</title><link>https://devzone.nordicsemi.com/thread/522933?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 16:36:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b495683-2c6a-46af-b539-9ded8db607fc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Fin tuning it a bit:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Start, h80 [ h40 | WR ], h00, h00, Stop&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;msg[0].buf = 0x00 &lt;span&gt;0x&lt;/span&gt;00;&lt;br /&gt;msg[0].len = 2;&lt;br /&gt;msg[0].flags = I2C_MSG_WRITE | I2C_MSG_STOP;&lt;/p&gt;
&lt;p&gt;i2c_transfer_dt(spec, msg, 1);&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Start, h80 [ h40 | WR ], h00,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Restart, h81 [ h40 | RD ], h39, h9F NACK, Stop&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;msg[0].buf = &lt;span&gt;0x&lt;/span&gt;00;&lt;br /&gt;msg[0].len = 1;&lt;br /&gt;msg[0].flags = I2C_MSG_WRITE;&lt;/p&gt;
&lt;p&gt;msg[1].buf = &lt;span&gt;0x&lt;/span&gt;39 &lt;span&gt;0x&lt;/span&gt;9F;&lt;br /&gt;msg[1].len = 2;&lt;br /&gt;msg[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP;&lt;/p&gt;
&lt;p&gt;i2c_transfer_dt(spec, msg, 2);&lt;/p&gt;
&lt;p&gt;Something along of those lines.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160DK i2c device no response</title><link>https://devzone.nordicsemi.com/thread/522931?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 16:33:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dd1db3a-dc3f-4af6-8f1d-c62268d87b54</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I can understand, but take a look at&amp;nbsp;how&amp;nbsp;i2c_transfer_dt() is used in my &amp;quot;example&amp;quot;, and search also for drivers in zephyr that use&amp;nbsp;&lt;span&gt;i2c_transfer_dt(), I think you should be able to replicate the same with nRF9160 using the suggestion I provided as guide.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160DK i2c device no response</title><link>https://devzone.nordicsemi.com/thread/522902?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 14:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19f897b-c29d-4bc8-a44b-70a9f9a05086</guid><dc:creator>drc_ch2</dc:creator><description>&lt;p&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response. What I am trying to show with the log information is the difference in the I2C capture from when i am trying to read data from the INA219 with the Digilent device as the I2C master versus the NRF9160Dk as the I2C master. What i was trying to show is that there is a difference (with same hw connections) between them and the digilent as the master works (i get data), and the nrf9160 as master (it doesn&amp;#39;t work i2C return value of -5).&lt;br /&gt;&lt;br /&gt;From what i am seeing with the Digitlent master there is an additional transaction &amp;quot;&lt;span&gt;Start, h80 [ h40 | WR ], h00,&amp;quot; between the initial start and restart. The NRF9160 capture does not have intermediary transaction.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160DK i2c device no response</title><link>https://devzone.nordicsemi.com/thread/522868?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2025 13:32:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c95e114f-0376-41bf-9825-464a3f9a419f</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t exactly understand the log information, but on a high level I would expect something along the lines of:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Start, h80 [ h40 | WR ], h00, h00, Stop&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;msg[0].buf = 40/80 00 00;&lt;br /&gt;msg[0].len = 2/3 bytes?;&lt;br /&gt;msg[0].flags = I2C_MSG_WRITE | I2C_MSG_STOP;&lt;/p&gt;
&lt;p&gt;i2c_transfer_dt(spec, msg, 1);&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Start, h80 [ h40 | WR ], h00,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Restart, h81 [ h40 | RD ], h39, h9F NACK, Stop&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;msg[0].buf = 40/80 00;&lt;br /&gt;msg[0].len = 1/2 bytes?;&lt;br /&gt;msg[0].flags = I2C_MSG_WRITE;&lt;/p&gt;
&lt;p&gt;msg[1].buf = 81/40?;&lt;br /&gt;msg[1].len = 2/3bytes?;&lt;br /&gt;msg[1].flags = I2C_MSG_RESTART | I2C_MSG_READ | I2C_MSG_STOP;&lt;/p&gt;
&lt;p&gt;i2c_transfer_dt(spec, msg, 2);&lt;/p&gt;
&lt;p&gt;Something along of those lines.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>