<?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 ESP32  PN5180 Communication Error? in NFC</title>
    <link>https://community.nxp.com/t5/NFC/ESP32-PN5180-Communication-Error/m-p/1561803#M9876</link>
    <description>&lt;P&gt;I use the ESP32-PICO-MINI-02 module to communicate with PN5180 through SPI.&lt;/P&gt;&lt;P&gt;I have added the needed interface into the NFC library which was found from the Internet.&lt;/P&gt;&lt;P&gt;Now I start to test the system based on Example 4, the codes will wait for the IRQ event shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status = phhalHw_Wait(sDiscLoop.pHalDataParams, PHHAL_HW_TIME_MICROSECONDS, 5100);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "true" code is in&amp;nbsp;"NxpNfcRdLib\comps\phhalHw\src\Pn5180\phhalHw_Pn5180_Wait.c"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;phhalHw_Pn5180_WaitIrq():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;statusTmp = phOsal_EventPend((volatile phOsal_Event_t * )(&amp;amp;pDataParams-&amp;gt;HwEventObj.EventHandle), E_OS_EVENT_OPT_PEND_SET_ANY, PHOSAL_MAX_DELAY,
                (E_PH_OSAL_EVT_RF | E_PH_OSAL_EVT_ABORT), &amp;amp;tReceivedEvents);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I find that only the IRQ handle will post the event? Is my understanding right?&lt;/P&gt;&lt;P&gt;Unfortunately, there is no interrupt on the IRQ pin. This means the SPI communication is not established successfully? If the communication is error, how should I do to ensure PN5180 has received the data from ESP32?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 06:43:16 GMT</pubDate>
    <dc:creator>zhangrupei</dc:creator>
    <dc:date>2022-11-30T06:43:16Z</dc:date>
    <item>
      <title>ESP32  PN5180 Communication Error?</title>
      <link>https://community.nxp.com/t5/NFC/ESP32-PN5180-Communication-Error/m-p/1561803#M9876</link>
      <description>&lt;P&gt;I use the ESP32-PICO-MINI-02 module to communicate with PN5180 through SPI.&lt;/P&gt;&lt;P&gt;I have added the needed interface into the NFC library which was found from the Internet.&lt;/P&gt;&lt;P&gt;Now I start to test the system based on Example 4, the codes will wait for the IRQ event shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status = phhalHw_Wait(sDiscLoop.pHalDataParams, PHHAL_HW_TIME_MICROSECONDS, 5100);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "true" code is in&amp;nbsp;"NxpNfcRdLib\comps\phhalHw\src\Pn5180\phhalHw_Pn5180_Wait.c"&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;phhalHw_Pn5180_WaitIrq():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;statusTmp = phOsal_EventPend((volatile phOsal_Event_t * )(&amp;amp;pDataParams-&amp;gt;HwEventObj.EventHandle), E_OS_EVENT_OPT_PEND_SET_ANY, PHOSAL_MAX_DELAY,
                (E_PH_OSAL_EVT_RF | E_PH_OSAL_EVT_ABORT), &amp;amp;tReceivedEvents);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I find that only the IRQ handle will post the event? Is my understanding right?&lt;/P&gt;&lt;P&gt;Unfortunately, there is no interrupt on the IRQ pin. This means the SPI communication is not established successfully? If the communication is error, how should I do to ensure PN5180 has received the data from ESP32?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 06:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/ESP32-PN5180-Communication-Error/m-p/1561803#M9876</guid>
      <dc:creator>zhangrupei</dc:creator>
      <dc:date>2022-11-30T06:43:16Z</dc:date>
    </item>
  </channel>
</rss>

