<?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 Re: PN532 i2c communication issue in NFC</title>
    <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691592#M2454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi testbed:&lt;/P&gt;&lt;P&gt;Thanks for your help. I will try to connect IRQ, and add ack and response frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2017 06:50:32 GMT</pubDate>
    <dc:creator>jackywu_t</dc:creator>
    <dc:date>2017-08-08T06:50:32Z</dc:date>
    <item>
      <title>PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691588#M2450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had bought a PN532 module to try on a lock design. I used STM32 as my host controller and set the PN532 module in i2c mode. First at all, i try to read firmware version. i send a command packet as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;buffer = {0x00,0x00,0xff,0x02,0xfe,0xd4,0x02,0x2a,0x00}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First sending slave address with write command was okay, host controller can get ack correctly. But following byte 0x00 can't get ack, always is nack. Is someone have same question? Did i missing boot up sequence? I can't find it in user manual. HELP!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PN532‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/nxp_pn532/tg-p"&gt;#nxp_pn532&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/tag/stm32/tg-p"&gt;#stm32&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 02:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691588#M2450</guid>
      <dc:creator>jackywu_t</dc:creator>
      <dc:date>2017-08-03T02:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691589#M2451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell us&lt;/P&gt;&lt;P&gt;1. Which PN532 module are you using?&lt;/P&gt;&lt;P&gt;2. Paste the code snippet for the firmware version command.&lt;/P&gt;&lt;P&gt;3. Are you using the IRQ pin on the PN532 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Aug 2017 13:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691589#M2451</guid>
      <dc:creator>testbed</dc:creator>
      <dc:date>2017-08-06T13:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691590#M2452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Thanks for your support:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #999999;"&gt;1. Which PN532 module are you using?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #999999;"&gt;&lt;SPAN style="color: #000000;"&gt;The following url, I don't know&amp;nbsp;manufacturer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;A href="http://www.playrobot.com/rfid/743-pn532-nfc-rfid.html"&gt;http://www.playrobot.com/rfid/743-pn532-nfc-rfid.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #999999;"&gt;2. Paste the code snippet for the firmware version command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;u_int32_t getFirmwareVersion(void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt; { &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;u_int8_t commandBuff[] = {0x00,0x00,0xff,0x02,0xfe,0xd4,0x02,0x2a,0x00}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;u_int8_t rxBuf[4] = {0x00}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;u_int32_t response = 0; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response = HAL_I2C_Master_Transmit(&amp;amp;hi2c3,PN532_I2C_ADDR,commandBuff,9,1000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;/* &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;HAL_I2C_Master_Receive(&amp;amp;hi2c3,PN532_I2C_ADDR,rxBuf,sizeof(rxBuf),100); r&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;esponse |= rxBuf[0]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response &amp;lt;&amp;lt;= 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response |= rxBuf[1]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response &amp;lt;&amp;lt;= 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response |= rxBuf[2];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt; response &amp;lt;&amp;lt;= 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;response |= rxBuf[3]; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;*/ &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;return response; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #999999;"&gt;3. Are you using the IRQ pin on the PN532 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;No, I didn't use it. Did i need to take care of it?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 05:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691590#M2452</guid>
      <dc:creator>jackywu_t</dc:creator>
      <dc:date>2017-08-07T05:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691591#M2453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this module earlier, though with a NXP host controller. The company that makes this board is Elechouse in china and they have stated on their site that there are many counterfeit versions of their designs available and it is recommended to buy directly from them. I had same problems earlier, no response from chip, IC getting hot after sometime etc. I would therefore suggest to buy the nfc board directly from their site. This is the bottom silk screen of the board that i have. This is the original...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WP_20170807_19_19_12_Pro.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16183iBB5847C0D63BC6B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="WP_20170807_19_19_12_Pro.jpg" alt="WP_20170807_19_19_12_Pro.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest to use the IRQ mechanism of PN532 to read the ack and response together with a timeout. In my case i had written a state machine to handle data from pn532.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 19:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691591#M2453</guid>
      <dc:creator>testbed</dc:creator>
      <dc:date>2017-08-07T19:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691592#M2454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi testbed:&lt;/P&gt;&lt;P&gt;Thanks for your help. I will try to connect IRQ, and add ack and response frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 06:50:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691592#M2454</guid>
      <dc:creator>jackywu_t</dc:creator>
      <dc:date>2017-08-08T06:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: PN532 i2c communication issue</title>
      <link>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691593#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，jacky&lt;/P&gt;&lt;P&gt;I also use STM32 +PN532 with i2c, but i can't get the connection. So i want to ask for you .&lt;/P&gt;&lt;P&gt;i want to discuss with you whether you use the follow register in your code. Thank you !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31451i43FEBAE33733BCF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 02:30:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/PN532-i2c-communication-issue/m-p/691593#M2455</guid>
      <dc:creator>hongfengjiang</dc:creator>
      <dc:date>2017-10-17T02:30:21Z</dc:date>
    </item>
  </channel>
</rss>

