<?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>Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46853/receiving-nack-from-the-slave-device-after-sending-the-slave-address</link><description>Hi Nordic, 
 I have been trying to communicate with KX 124-1051 using IIC in nRF52832 . I am getting NACK from slave every time i send the device address. I checked all the corner issues causing the NACK . Using the same board i tried with other sensors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2019 12:38:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46853/receiving-nack-from-the-slave-device-after-sending-the-slave-address" /><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/185187?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 12:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6e9e584-c57f-46f4-9d66-3d7d3774c834</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So have you resolved this now?&lt;/p&gt;
&lt;p&gt;If so, please describe the solution for the benefit of future readers who may come along with similar questions.&lt;/p&gt;
&lt;p&gt;And verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3858._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/185182?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 12:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdfa73b4-63a9-487c-8a5b-203918e80f44</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;That is the hardware issue, thanks for the response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/185072?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 08:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afa533be-031d-4ec0-944d-09981d99ec36</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Sure, I will check with that, Thank you. Yes that is the site. I&amp;nbsp; also checked Power-on procedure. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/185068?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 07:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25db50a3-3ac5-4dc3-ba12-afe9ff9c37f1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Again, if the TWI scanner is not detecting it, and other devices on the same bus at the same time &lt;em&gt;are&lt;/em&gt; detected, then it has to be something to do with the particular Slave.&lt;/p&gt;
&lt;p&gt;So this is nothing to do with Nordic - you are going to have to seek help from the Slave manufacturer.&lt;/p&gt;
&lt;p&gt;Review the datasheet, and all available supporting documentation from the manufacturer - make sure you have everything correct in your design&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;Is this the part you&amp;#39;re talking about:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.mouser.co.uk/new/kionix/kionix-kx124-1051/"&gt;https://www.mouser.co.uk/new/kionix/kionix-kx124-1051/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you checked out the &amp;#39;&lt;strong&gt;Resources&lt;/strong&gt;&amp;#39; there?&lt;/p&gt;
&lt;p&gt;Have you visited the manufacturer&amp;#39;s own site to check for further resources?&lt;/p&gt;
&lt;p&gt;In particular, have you got the Evaluation Board:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.mouser.co.uk/new/kionix/kionix-kx124-1051-evb0b0-eval-board/"&gt;https://www.mouser.co.uk/new/kionix/kionix-kx124-1051-evb0b0-eval-board/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Even if you don&amp;#39;t have it, check out the &amp;#39;&lt;strong&gt;Resources&lt;/strong&gt;&amp;#39; that go with it ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/185032?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 06:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d307c00a-4810-495b-92f7-3fa59c7dbe28</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;I tried adding some delay for startup to complete. It didn&amp;#39;t work out. And it is not even detected by TWI scanner. I have connected other sensors and they are getting detected. Why not this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/184900?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb0e7506-9fe6-4eb7-9339-3b2dc4b21861</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If you need clarification of&amp;nbsp;3rd-party documentation, then you need to contact the &lt;span&gt;3rd-party&lt;/span&gt; for that - it has nothing to do with Nordic!&lt;/p&gt;
&lt;p&gt;It sounds perfectly clear to me - what bit don&amp;#39;t you understand?&lt;/p&gt;
&lt;p&gt;Presumably, the documentation tells you how long &amp;quot;the startup&amp;quot; can be expected to last?&lt;/p&gt;
&lt;p&gt;So just wait a bit longer than that before trying to communicate with it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/184892?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 12:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4776ad9a-7a26-49dc-a70c-90f514ab06d4</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;I haven&amp;#39;t tested with any other master, Clock is also fine. But in the datasheet, they mentioned like&lt;br /&gt;&lt;strong&gt;Note&lt;/strong&gt; : &lt;span style="font-family:sans-serif;font-size:18.4px;left:178.433px;top:932.265px;"&gt;if the accelerometer &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:18.4px;left:567.517px;top:932.265px;"&gt;is accessed through I&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:11.6px;left:738.3166666666666px;top:931.8186666666663px;"&gt;2&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:18.4px;left:744.717px;top:932.265px;"&gt;C protocol before the startup &lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:18.4px;left:75.6px;top:953.465px;"&gt;is finish&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:18.4px;left:136.84px;top:953.465px;"&gt;ed a NACK signal is sent.&lt;/span&gt;&lt;span style="font-family:sans-serif;font-size:18.4px;left:178.433px;top:932.265px;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This i didn&amp;#39;t understand. Do you have any idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/184854?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 11:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8f7665c-25a3-49d2-bc49-daa5490cf996</guid><dc:creator>awneil</dc:creator><description>[quote userid="74060" url="~/f/nordic-q-a/46853/receiving-nack-from-the-slave-device-after-sending-the-slave-address/184842"]Even with TWI Scanner app, i was not able to detect the tag[/quote]
&lt;p&gt;Then there&amp;#39;s something fundamentally wrong!&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you looked at the I2C lines with a scope or analyser ?&lt;/span&gt;&lt;/p&gt;
[quote userid="74060" url="~/f/nordic-q-a/46853/receiving-nack-from-the-slave-device-after-sending-the-slave-address/184842"]Under what conditions slave sends NACK even though address is correct? [/quote]
&lt;p&gt;You would have to check the device&amp;#39;s &lt;strong&gt;documentation&lt;/strong&gt; for that.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you had this slave working with any other Master?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/184842?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 11:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8d433a4-2f89-44e8-a37d-bfa8f2c700cd</guid><dc:creator>Nirupama</dc:creator><description>&lt;p&gt;Yes, I checked many times. Even with TWI Scanner app, i was not able to detect the tag.&amp;nbsp; Under what conditions slave sends NACK even though address is correct? The slave address is 0x1E. This address is the correct one. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Receiving NACK from the slave device after sending the slave address</title><link>https://devzone.nordicsemi.com/thread/184823?ContentTypeID=1</link><pubDate>Thu, 02 May 2019 09:55:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82b955ba-5876-4c68-b064-581e5eb01e08</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you sure that the slave is actively sending a NACK?&lt;/p&gt;
&lt;p&gt;Remember that a NACK will be seen if there is &lt;em&gt;&lt;strong&gt;no&lt;/strong&gt; &lt;/em&gt;slave connected at all ...&lt;/p&gt;
&lt;p&gt;Also, a NAK will be seen if the Slave simply ignores the address - which would be the case if you have the wrong address ...&lt;/p&gt;
&lt;p&gt;Have you looked at the I2C lines with a scope or analyser ?&lt;/p&gt;
&lt;p&gt;Have you tried the TWI Scanner ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>