<?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>app twi with ads1015 init transfer error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14789/app-twi-with-ads1015-init-transfer-error</link><description>I tried to modify the twi_master_using_app_twi to work with adafruit ADS1015 as a slave. I ran into this problem. It seems that the init_transfer doesn&amp;#39;t finish so the app_twi_perform command just keeps it hanging. Can someone tell me how to fix this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Aug 2016 04:31:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14789/app-twi-with-ads1015-init-transfer-error" /><item><title>RE: app twi with ads1015 init transfer error</title><link>https://devzone.nordicsemi.com/thread/56462?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2016 04:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15a422a0-97ac-4bf1-864d-0e6cb444e295</guid><dc:creator>Rocky Liang</dc:creator><description>&lt;p&gt;@chenyang08s, have you solve your TWI problem? If you have, could you please tell me what the problem was? I am experiencing the same program as you did in my project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app twi with ads1015 init transfer error</title><link>https://devzone.nordicsemi.com/thread/56461?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2016 09:28:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6be1c56-4148-466f-be57-876aa8e094fd</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Is it &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group__nrf__error.html#gadf8b0c33ea15352808e5ac7f69c2be8a"&gt;NRF_ERROR_INTERNAL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This means that the TWI transfer was unsuccessful due to the slave sending a NACK on either the address byte or the following bytes. You need to double check that you are sending the correct address and data according to the slave device data sheet. You should also get a logic analyzer and see what is actually happening on the bus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app twi with ads1015 init transfer error</title><link>https://devzone.nordicsemi.com/thread/56460?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2016 16:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d570afb-2f52-4033-a33b-aeb90ec57322</guid><dc:creator>chenyang08s</dc:creator><description>&lt;p&gt;Thanks for helping! I think the pins are correct, I checked the error code and it appears to be 0x00000003. Any idea what this means?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: app twi with ads1015 init transfer error</title><link>https://devzone.nordicsemi.com/thread/56459?ContentTypeID=1</link><pubDate>Tue, 28 Jun 2016 09:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da0b42d2-33a6-4d3f-8ff4-6ddb639361ee</guid><dc:creator>Anders Strand</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I would check a couple of things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Is the pins assigned to TWI correct? Are they used by something else like UART or RTC?&lt;/li&gt;
&lt;li&gt;Does the app_twi_perform return with an error code? If so, which error code? See &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/?answer=60126#post-id-60126"&gt;this&lt;/a&gt; post for more detail.&lt;/li&gt;
&lt;li&gt;The next step is to use a &lt;a href="https://www.google.no/webhp?sourceid=chrome-instant&amp;amp;ion=1&amp;amp;espv=2&amp;amp;ie=UTF-8#q=logic%20analyzer"&gt;logic analyzer&lt;/a&gt; on the pins and see if there is any TWI traffic at all.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;-Anders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>