<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PN7120 driver error : &amp;quot;pn54x_dev_write : i2c_master_send returned -5. When probe with scope, it seems that sometime, it is ACK the write from DH.  in NFC</title>
    <link>https://community.nxp.com/t5/NFC/PN7120-driver-error-quot-pn54x-dev-write-i2c-master-send/m-p/631245#M1306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have integrated PN7120 Linux driver and HAL base on AN11690. I run the NXP test apk. It is able scan and discovered the NFC credit card. However, every once awhile, I'm getting the following errors from the driver. "pn54x_dev_write : i2c_master_send returned -5. When&amp;nbsp;I probe i2c bus with&amp;nbsp;scope, it seems that sometimes, it is response ACK on i2c write access.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2016 07:27:07 GMT</pubDate>
    <dc:creator>frank689</dc:creator>
    <dc:date>2016-10-13T07:27:07Z</dc:date>
    <item>
      <title>PN7120 driver error : "pn54x_dev_write : i2c_master_send returned -5. When probe with scope, it seems that sometime, it is ACK the write from DH.</title>
      <link>https://community.nxp.com/t5/NFC/PN7120-driver-error-quot-pn54x-dev-write-i2c-master-send/m-p/631245#M1306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have integrated PN7120 Linux driver and HAL base on AN11690. I run the NXP test apk. It is able scan and discovered the NFC credit card. However, every once awhile, I'm getting the following errors from the driver. "pn54x_dev_write : i2c_master_send returned -5. When&amp;nbsp;I probe i2c bus with&amp;nbsp;scope, it seems that sometimes, it is response ACK on i2c write access.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7120-driver-error-quot-pn54x-dev-write-i2c-master-send/m-p/631245#M1306</guid>
      <dc:creator>frank689</dc:creator>
      <dc:date>2016-10-13T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: PN7120 driver error : "pn54x_dev_write : i2c_master_send returned -5. When probe with scope, it seems that sometime, it is ACK the write from DH.</title>
      <link>https://community.nxp.com/t5/NFC/PN7120-driver-error-quot-pn54x-dev-write-i2c-master-send/m-p/631246#M1307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error code "-5" relates to generic errno definition EIO (I/O error). Refer to &lt;A class="" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.virtsync.com%2Fc-error-codes-include-errno" rel="nofollow" target="_blank"&gt;errno.h - C Error Codes in Linux&lt;/A&gt; for more details.&lt;/P&gt;&lt;P&gt;Looking to the pn5xx_i2c module implementation (&lt;A class="" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FNXPNFCLinux%2Fnxp-pn5xx%2Fblob%2Fmaster%2Fpn5xx_i2c.c" rel="nofollow" target="_blank"&gt;nxp-pn5xx/pn5xx_i2c.c at master · NXPNFCLinux/nxp-pn5xx · GitHub&lt;/A&gt;&amp;nbsp;), this error code is raised by the kernel I2C driver (&lt;SPAN class=""&gt;i2c_master_send). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;In a specific case, the PN7120 is not answering to I2C write command: when it is in standby state. This is expected behavior, first write command waking-up the PN7120 and second one will be answered. The MW stack (Linux or Android stack) is managing the re-transmission of the frame to handle this case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope that helps,&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2016 01:57:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN7120-driver-error-quot-pn54x-dev-write-i2c-master-send/m-p/631246#M1307</guid>
      <dc:creator>Kan_Li</dc:creator>
      <dc:date>2016-11-15T01:57:14Z</dc:date>
    </item>
  </channel>
</rss>

