<?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>twi/i2c 16bit address and value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69624/twi-i2c-16bit-address-and-value</link><description>I am trying to measure distance with a vl53l1x sensor through the twi_sensor example. I uploaded the code to segger by referring to sparkfun, but twi_handler does not work. It seems to be a problem because the write function and the read function are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Dec 2020 12:50:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69624/twi-i2c-16bit-address-and-value" /><item><title>RE: twi/i2c 16bit address and value</title><link>https://devzone.nordicsemi.com/thread/285629?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 12:50:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad27a70-0144-40e9-82e2-e85dd9fb0be1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you print out the ret_code; that returns from the nrf_drv_twi_tx() function where you&amp;#39;re seeing this&amp;nbsp;&lt;span&gt;&amp;quot;TWI RdWord NRF_SUCCESS FAIL&amp;quot;, as that should help us see what kind of error the application returns instead of this generic FAIL message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can also try connecting the device(s) to a logic analyzer to see if there is actually any &amp;quot;action&amp;quot; on the TX and RX pins you&amp;#39;re trying to read and write from.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>