<?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: [MRFC630] Can't response from APDU command in NFC</title>
    <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449175#M9392</link>
    <description>&lt;P&gt;from NXP phpalI14443p4_Sw.c:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;phStatus_t &lt;/SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_Exchange&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;/* I-BLOCK TRANSMISSION LOOP */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_IsoHandling()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;/*&lt;SPAN&gt; I-BLOCK RECEPTION LOOP &lt;/SPAN&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;.....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_IsoHandling()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 11:38:24 GMT</pubDate>
    <dc:creator>RadomirT</dc:creator>
    <dc:date>2022-04-26T11:38:24Z</dc:date>
    <item>
      <title>[MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1003651#M6589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I have met the issue of response from APDU.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I checked the RATS's response.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;However, when I send the APDU's&amp;nbsp;command to mfrc630, I can't response anything.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;command of APDU is as below.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;STRONG style="color: red; font-size: 12.0pt; "&gt;APDU ={0x00, 0xA4, 0x04, 0x00, 0x07 ,_data 7byte,0x00}&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/STRONG&gt;&lt;STRONG style="color: red; font-size: 12.0pt; "&gt;&lt;SPAN&gt;&amp;nbsp;Commend[13byte]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;BR /&gt; I think about that I get the data&amp;nbsp;with 0x90, 0x00 but I can't take a response.&lt;BR /&gt; Source code is as below.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;fifo_flush();&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mfrc630_write_reg(MFRC630_REG_TXCRCPRESET, MFRC630_RECOM_14443A_CRC | MFRC630_CRC_ON);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mfrc630_write_reg(MFRC630_REG_RXCRCCON, MFRC630_RECOM_14443A_CRC | MFRC630_CRC_ON);&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; uint8_t timer_for_timeout = 0;&amp;nbsp; // should match the enabled interupt.&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; mfrc630_write_reg(MFRC630_REG_IRQ0EN, MFRC630_IRQ0EN_IDLE_IRQEN | MFRC630_IRQ0EN_ERR_IRQEN);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; mfrc630_write_reg(MFRC630_REG_IRQ1EN, MFRC630_IRQ1EN_TIMER0_IRQEN);&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; mfrc630_timer_set_control(timer_for_timeout, MFRC630_TCONTROL_CLK_211KHZ | MFRC630_TCONTROL_START_TX_END);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;mfrc630_timer_set_reload(timer_for_timeout, 10000);&amp;nbsp; // 2000 ticks of 5 usec is 10 ms.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; mfrc630_timer_set_value(timer_for_timeout, 10000);&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; uint8_t irq1_value = 0;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; uint8_t irq0_value = 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; mfrc630_clear_irq0();&amp;nbsp; // clear irq0&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; mfrc630_clear_irq1();&amp;nbsp; // clear irq1&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; mfrc630_cmd_transceive(DF_data, 13);&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;while (!(irq1_value &amp;amp; (1 &amp;lt;&amp;lt; timer_for_timeout))) {&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; irq1_value = mfrc630_irq1();&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (irq1_value &amp;amp; MFRC630_IRQ1_GLOBAL_IRQ)&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mfrc630_cmd_idle();&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp; if (irq1_value &amp;amp; (1 &amp;lt;&amp;lt; timer_for_timeout))&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; irq0_value = mfrc630_irq0();&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.5pt; color: blue;"&gt;&amp;nbsp; if (irq0_value &amp;amp; MFRC630_IRQ0_ERR_IRQ)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; "&gt;Would you please let me know what problem do I have?&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; "&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 01:26:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1003651#M6589</guid>
      <dc:creator>jtpark</dc:creator>
      <dc:date>2019-11-05T01:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1003652#M6590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jtpark"&gt;jtpark&lt;/A&gt;‌,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;after a RATS/ATS exchange the tag is in Layer-4 and you have to use the ISO-DEP protocol for communication. Your frame looks like a SELECT APPLICATION according to ISO-7816-4. This frame you would have to embedded into the ISO-DEP block format.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;You can check following specifications:&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;@see NFC Forum Digital Protocol TS [16 ISO-DEP Protocol]&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;@see ISO/IEC 14443-4 Part 4: Transmission Protocol [7 Half-duplex block transmission protocol]&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;To give a short summary about it. You are missing the PCB (Protocol control byte), in case you do not use DID. For an information block (I-Block) without DID or chaining the PCB would look like 0000 001Xb, where 'X' is the block number and alternating from frame to frame (02h, 03h, 02h, 03h, ....)&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;For a quick test you can just set the PCB at the front of your command and you should get a response:&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;APDU ={&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;0x02&lt;/STRONG&gt;&lt;/SPAN&gt;, 0x00, 0xA4, 0x04, 0x00, 0x07 ,_data 7byte, 0x00}&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;I hope this was helpful.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&amp;nbsp;&lt;/STRONG&gt;You can use the NXP NFC Reader Library which offers several classes to handle the ISO-DEP protocol (it comes with a couple of rules about error detection, recovery etc...), activation and other things quite handy for a proper specification compliant communication.&amp;nbsp;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Or you can just use it as a guideline for your own implementation.&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 08:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1003652#M6590</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2019-11-05T08:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1307113#M8686</link>
      <description>&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;I have a similar requirement wherein I want to use the MFRC630 reader to send and receive ISO 7816-4 APDU commands. I tried your suggestions above but could not get any response from the card.&lt;/P&gt;&lt;P&gt;Is there any library or example project from NXP that you can point me to? Where can i find the NXP NFC Reader Library for MFRC630 that you mentioned here?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Varad&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 17:12:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1307113#M8686</guid>
      <dc:creator>VaradrajSK</dc:creator>
      <dc:date>2021-07-13T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1379628#M9030</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/124376"&gt;@AlexanderB&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I tested with pcb byte and is working. I am using APDU commands SELECT with:&lt;BR /&gt;uint8_t ppse[] = {0x32, 0x50, 0x41, 0x59, 0x2e, 0x53, 0x59, 0x53, 0x2e, 0x44, 0x44, 0x46, 0x30, 0x31};&lt;BR /&gt;uint8_t app_visa[] = {0xa0, 0x00, 0x00, 0x00, 0x03, 0x10, 0x10};&lt;BR /&gt;or&lt;BR /&gt;uint8_t app_mast[] = {0xa0, 0x00, 0x00, 0x00, 0x04, 0x10, 0x10};&lt;/P&gt;&lt;P&gt;and from VISA/MASTER cards I'v got correct response.&lt;/P&gt;&lt;P&gt;There is issue if I use my phone in mode HCE (HCE Test tool - VISA image) I am able to send/receive RATS/ATS but for PPSE I got always some error:&lt;BR /&gt;RATS (5b): 05 78 80 40 00&lt;BR /&gt;APDU PPSE (2b): F2 08&lt;/P&gt;&lt;P&gt;I tested also with VISA/MASTER and if I am far enough with the card from CLRC663 dev board it's also return F2 01. I can not find any explanation to this response. What is meaning of this?&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;BR /&gt;Radomir&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 10:40:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1379628#M9030</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2021-12-01T10:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1379818#M9031</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the MFRC630 belongs to the RC663 family. Please go to&amp;nbsp;&lt;A title="NFC Reader Library" href="https://www.nxp.com/design/designs/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY" target="_self"&gt;https://www.nxp.com/design/designs/nfc-reader-library-software-support-for-nfc-frontend-solutions:NFC-READER-LIBRARY&lt;/A&gt;&amp;nbsp;and download the library for the 663.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the library you will find various examples showing different scenarios and functionality. For layer-4 abstraction have a closer look at&amp;nbsp;phpalI14443p4.&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 15:12:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1379818#M9031</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2021-12-01T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1380418#M9033</link>
      <description>&lt;P&gt;ok, I understand now. It is not just PCB byte 02-03-02...&lt;/P&gt;&lt;P&gt;there is wrapper to APDU commands described in ISO 14443-4, so PCB byte value is codet with I-BLOCK/R-BLOCK/S-BLOCK WTX-DESELECT and coresponding request/response should follow.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 07:54:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1380418#M9033</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2021-12-02T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1380428#M9034</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;exactly.&lt;/P&gt;&lt;P&gt;There is much more to it then just one toggling bit. Also error handling/recovery. All this is abstracted within our library and can be used without caring much about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 08:02:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1380428#M9034</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2021-12-02T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411673#M9173</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;RadomirT,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you find any solution to your problem. I have exactly the same issue I keep getting f2 01 most of the time even thought I sometimes I get 90 00 but most of the time f2 01 is what I get. Could you please help if you get to the solution I am stuck on this for months now. Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411673#M9173</guid>
      <dc:creator>mina_farah</dc:creator>
      <dc:date>2022-02-10T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411728#M9174</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I finished implemetation of:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ISO14443A-4: wrapper for APDU commands&lt;/LI&gt;&lt;LI&gt;ISO7816-4 APDU: commands for SELECT PPSE/AID - working with VISA/MASTERCARD, support for HCE on Andriod (HCE Test Tool)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Solution you can find in github repo:&lt;/P&gt;&lt;H1&gt;&lt;STRONG&gt;&lt;A href="https://github.com/CodElecCz/STM32F1-CLRC663" target="_self"&gt;STM32F1-CLRC663&lt;/A&gt;&lt;/STRONG&gt;&lt;/H1&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411728#M9174</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2022-02-10T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411753#M9175</link>
      <description>&lt;P&gt;Wow! Many thanks. I think my issue is that I am just toggling between 0x02 and 0x03 with each commands where as it seems there is more into it that than just toggling. I am going to use that bit of your code fingers crossed it solves my issue. Again many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 10:35:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411753#M9175</guid>
      <dc:creator>mina_farah</dc:creator>
      <dc:date>2022-02-10T10:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411764#M9176</link>
      <description>&lt;P&gt;Hello Mina,&lt;/P&gt;
&lt;P&gt;you can also have a look into the NFC Reader Library&amp;nbsp;which incoporates all necessary abstraction layers to talk with any external device on any specified protocol layer.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Speaking about the PCB (Protocol control byte) you are at level ISO/IEC-14443-4 which in the reader library is covered at the protocol abstraction layer iso14443p4 (see phpall14443p4.h for its available APIs).&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 10:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411764#M9176</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2022-02-10T10:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411926#M9177</link>
      <description>&lt;P&gt;Many thanks&amp;nbsp;&lt;SPAN&gt;RadomirT and&amp;nbsp;&amp;nbsp;AlexanderB. It is now working! Can't believe it!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 15:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1411926#M9177</guid>
      <dc:creator>mina_farah</dc:creator>
      <dc:date>2022-02-10T15:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1447749#M9378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am back again with another problem. Please help if you can. Now that I managed to read and write from HCE for some strange reason I am limited to only 14 bytes read from fifo. I know that fifo can handle 512 bytes and I have set it to do so however eventhough I can write files as big as I need but I can not read them back if the file is bigger than a 14 bytes file!! My investigation shows that the problem comes from the fact that from the beginning the fifo length 's read as 14 bytes where as in my case it should have been 18 bytes! ignoring the length of the fifo, I read 18 bytes but the problem is, I got the last 4 byte all zeros! Could anyone recognise this issue?I really appreciate your help and thought.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 09:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1447749#M9378</guid>
      <dc:creator>minabf61</dc:creator>
      <dc:date>2022-04-22T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1448599#M9383</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/120407"&gt;@minabf61&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;please help me to understand your setup first. You speak of HCE (Host Card Emulation) but the product from the title "MFRC630" does not support HCE. It is a R/W (PCD) only without the capability to emulate a card (PICC).&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I assume that you are reading from another HCE target with the MFCRC630?&amp;nbsp;&lt;BR /&gt;What is the HCE target?&lt;/P&gt;&lt;P&gt;Please do not hold back with information. As more as I know the better I can help you &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Alexander&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 14:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1448599#M9383</guid>
      <dc:creator>AlexanderB</dc:creator>
      <dc:date>2022-04-25T14:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449003#M9388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you use mfrc630 lib:&lt;/P&gt;&lt;P&gt;uint8_t mfrc630_transfer(uint8_t cmd[], uint32_t cmdSize, uint8_t data[], uint32_t* dataSize)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;// all seems to be well...&lt;BR /&gt;uint8_t buffer_length = mfrc630_fifo_length();&lt;BR /&gt;//printf("mfrc630_fifo_length %d\n", buffer_length);&lt;BR /&gt;uint8_t rx_len = (buffer_length &amp;lt;= *dataSize) ? buffer_length : *dataSize;&lt;BR /&gt;mfrc630_read_fifo(data, rx_len);&lt;BR /&gt;*dataSize = rx_len;&lt;/P&gt;&lt;P&gt;return rx_len;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;In this case before you call this function:&lt;/P&gt;&lt;P&gt;uint8_t res[512];&lt;BR /&gt;uint32_t resSize = sizeof(res);&lt;BR /&gt;&lt;SPAN&gt;status = mfrc630_transfer(req, reqSize, res, &amp;amp;resSize);&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 07:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449003#M9388</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2022-04-26T07:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449150#M9389</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194197"&gt;@RadomirT&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for coming back to me.&lt;/P&gt;&lt;P&gt;my problem is "&lt;SPAN&gt;mfrc630_14443p4_transfer" function.&amp;nbsp;&lt;/SPAN&gt;What is data and dataSize in it&lt;SPAN&gt;? If you look at this function, data and dataSize has never been used inside it so I know this is the response so I swaped res with data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;plus in&amp;nbsp;uint8_t buffer_length = mfrc630_fifo_length() inside "mfrc630_transfer" function, the buffer_length never exceed 14bytes! hence the data is limited to 14 bytes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Have you tried reading and writing into desfire card's created file? I could not find any apdu commands relating to that in your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mina&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 10:32:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449150#M9389</guid>
      <dc:creator>minabf61</dc:creator>
      <dc:date>2022-04-26T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449158#M9390</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/124376"&gt;@AlexanderB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;yes I am&amp;nbsp;&lt;SPAN&gt;reading from another HCE target with the CLRC663(using mainly MFRC630 functions). So my HCE target is an android app. I have the same issue using only the desfire card so can not blaim the android app for it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am sending APDU commands to read and write into desfire card (or the HCE) I have no problem writing into the card and gettting the success response, bearing in mind that using other devices I can fully read whatever I wrote in the file.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also need to be able to read what I wrote into the file, but am limited to 14 bytes read!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here I attached my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;typedef struct {&lt;/P&gt;&lt;P&gt;uint8_t FileNo[1];&lt;BR /&gt;uint8_t Offset[3];&lt;BR /&gt;uint8_t Length[3];&lt;/P&gt;&lt;P&gt;}EmulatedCard;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//============================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint8_t ReadDataSetting[18] = {0};&amp;nbsp; &amp;nbsp; // I know my data is 18 bytes as I wrote 16bytes into the file +2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// bytes operation status&lt;BR /&gt;EmulatedCard LockSettig = {{0x01}, {0x07, 0x00, 0x00}, {sizeof(ReadDataSetting), 0x00, 0x00}};&lt;BR /&gt;MIFARE_Emulated_ReadData( ReadDataSetting, sizeof(ReadDataSetting), LockSettig.FileNo, LockSettig.Offset, LockSettig.Length);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//============================================================&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void MIFARE_Emulated_ReadData(uint8_t ReadData[], uint32_t* ReadDataSize, uint8_t FileNo[], uint8_t Offset[], uint8_t Length[]){&lt;/P&gt;&lt;P&gt;uint8_t cmd[8] = {0};&lt;BR /&gt;cmd[0] = 0xBD; // --------------Command for Reading&lt;BR /&gt;memcpy(cmd +1, FileNo, 1);&lt;BR /&gt;memcpy(cmd +2, Offset, 3);&lt;BR /&gt;memcpy(cmd +5, Length, 3);&lt;/P&gt;&lt;P&gt;uint8_t status = CLRC663_14443p4_transfer(cmd, sizeof(cmd), ReadData, &amp;amp;ReadDataSize);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// ================================================================&lt;/P&gt;&lt;P&gt;uint8_t CLRC663_14443p4_transfer(uint8_t cmd[], uint32_t cmdSize, uint8_t data[], uint32_t* dataSize)&lt;BR /&gt;{&lt;BR /&gt;uint8_t req[cmdSize+1];&lt;BR /&gt;req[0] = get_pcb();&lt;BR /&gt;memcpy(&amp;amp;req[1], cmd, cmdSize);&lt;BR /&gt;uint32_t reqSize = sizeof(req);&lt;/P&gt;&lt;P&gt;uint8_t status = 0;&lt;/P&gt;&lt;P&gt;uint32_t retries = 6;&lt;BR /&gt;uint8_t bCheckNad;&lt;BR /&gt;do&lt;BR /&gt;{&lt;BR /&gt;uint32_t dataSize = sizeof(data);&lt;BR /&gt;status = CLRC663_transfer(req, reqSize, data, &amp;amp;dataSize);&lt;BR /&gt;if(status&amp;gt;0)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;/* NXP phpalI14443p4_Sw.c */&lt;BR /&gt;/* I-Block handling */&lt;BR /&gt;if (0u != (PHPAL_I14443P4_SW_IS_I_BLOCK(data[PHPAL_I14443P4_SW_PCB_POS])))&lt;BR /&gt;{&lt;BR /&gt;//OK&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;/* R(ACK) handling */&lt;BR /&gt;else if ((PHPAL_I14443P4_SW_IS_R_BLOCK(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U) &amp;amp;&amp;amp; (PHPAL_I14443P4_SW_IS_ACK(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U))&lt;BR /&gt;{&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;/* S(WTX) handling */&lt;BR /&gt;else if ((PHPAL_I14443P4_SW_IS_S_BLOCK(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U) &amp;amp;&amp;amp; (PHPAL_I14443P4_SW_IS_WTX(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U))&lt;BR /&gt;{&lt;BR /&gt;/* Retrieve WTXM */&lt;BR /&gt;uint8_t bWtxm = data[dataSize-1u];&lt;/P&gt;&lt;P&gt;/* Ignore and clear the Power Level Indication */&lt;BR /&gt;bWtxm &amp;amp;= 0x3FU;&lt;/P&gt;&lt;P&gt;/* Generate S(WTX) frame */&lt;/P&gt;&lt;P&gt;/* S-Block PCB */&lt;BR /&gt;req[PHPAL_I14443P4_SW_PCB_POS] = PHPAL_I14443P4_SW_S_BLOCK | PHPAL_I14443P4_SW_S_BLOCK_RFU_BITS;&lt;BR /&gt;req[PHPAL_I14443P4_SW_PCB_POS] |= PHPAL_I14443P4_SW_PCB_WTX;&lt;BR /&gt;req[PHPAL_I14443P4_SW_PCB_POS+1] = bWtxm;&lt;BR /&gt;reqSize = 2;&lt;/P&gt;&lt;P&gt;//TODO: wait?&lt;BR /&gt;}&lt;BR /&gt;/* S(DESELECT) handling */&lt;BR /&gt;else if ((PHPAL_I14443P4_SW_IS_S_BLOCK(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U) &amp;amp;&amp;amp; (PHPAL_I14443P4_SW_IS_DESELECT(data[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U))&lt;BR /&gt;{&lt;BR /&gt;/* S-Block PCB */&lt;BR /&gt;req[PHPAL_I14443P4_SW_PCB_POS] = PHPAL_I14443P4_SW_S_BLOCK | PHPAL_I14443P4_SW_S_BLOCK_RFU_BITS;&lt;BR /&gt;reqSize = 1;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;/* We received an invalid block */&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;break;&lt;/P&gt;&lt;P&gt;--retries;&lt;BR /&gt;}while(retries!=0);&lt;BR /&gt;return status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// ===============================================================&lt;/P&gt;&lt;P&gt;uint8_t CLRC663_transfer(uint8_t cmd[], uint32_t cmdSize, uint8_t data[], uint32_t* dataSize)&lt;BR /&gt;{&lt;BR /&gt;CLRC663_flush_fifo();&lt;/P&gt;&lt;P&gt;CLRC663_write_reg(CLRC663_REG_TXCRCPRESET, CLRC663_RECOM_14443A_CRC | CLRC663_CRC_ON);&lt;BR /&gt;CLRC663_write_reg(CLRC663_REG_RXCRCCON, CLRC663_RECOM_14443A_CRC | CLRC663_CRC_ON);&lt;/P&gt;&lt;P&gt;// configure a timeout timer.&lt;BR /&gt;uint8_t timer_for_timeout = 0; // should match the enabled interupt.&lt;/P&gt;&lt;P&gt;// enable the global IRQ for idle, errors and timer.&lt;BR /&gt;CLRC663_write_reg(CLRC663_REG_IRQ0EN, CLRC663_IRQ0EN_IDLE_IRQEN | CLRC663_IRQ0EN_ERR_IRQEN);&lt;BR /&gt;CLRC663_write_reg(CLRC663_REG_IRQ1EN, CLRC663_IRQ1EN_TIMER0_IRQEN);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// Set timer to 221 kHz clock, start at the end of Tx.&lt;BR /&gt;CLRC663_timer_set_control(timer_for_timeout, CLRC663_TCONTROL_CLK_211KHZ | CLRC663_TCONTROL_START_TX_END);&lt;BR /&gt;// Frame waiting time: FWT = (256 x 16/fc) x 2 FWI&lt;BR /&gt;// FWI defaults to four... so that would mean wait for a maximum of ~ 5ms&lt;BR /&gt;CLRC663_timer_set_reload(timer_for_timeout, 20000); // 20000 ticks of 5 usec is 100 ms.&lt;BR /&gt;CLRC663_timer_set_value(timer_for_timeout, 20000);&lt;/P&gt;&lt;P&gt;uint8_t irq1_value = 0;&lt;BR /&gt;uint8_t irq0_value = 0;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CLRC663_clear_irq0(); // clear irq0&lt;BR /&gt;CLRC663_clear_irq1(); // clear irq1&lt;/P&gt;&lt;P&gt;// Go into send, then straight after in receive.&lt;BR /&gt;CLRC663_cmd_transceive(cmd, cmdSize);&lt;/P&gt;&lt;P&gt;// block until we are done&lt;BR /&gt;while (!(irq1_value &amp;amp; (1 &amp;lt;&amp;lt; timer_for_timeout))) {&lt;BR /&gt;irq1_value = CLRC663_irq1();&lt;BR /&gt;if (irq1_value &amp;amp; CLRC663_IRQ1_GLOBAL_IRQ) {&lt;BR /&gt;break; // stop polling irq1 and quit the timeout loop.&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;CLRC663_cmd_idle();&lt;/P&gt;&lt;P&gt;if (irq1_value &amp;amp; (1 &amp;lt;&amp;lt; timer_for_timeout)) {&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;irq0_value = CLRC663_irq0();&lt;BR /&gt;if ((!(irq0_value &amp;amp;CLRC663_IRQ0_RX_IRQ)) || (irq0_value &amp;amp; CLRC663_IRQ0_ERR_IRQ)) {&lt;BR /&gt;// some error&lt;BR /&gt;if((irq0_value &amp;amp; CLRC663_IRQ0_ERR_IRQ)) {&lt;BR /&gt;uint8_t error = CLRC663_read_reg(CLRC663_REG_ERROR);&lt;BR /&gt;}&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;//HAL_Delay(10);&lt;BR /&gt;// all seems to be well...&lt;BR /&gt;uint16_t buffer_length = CLRC663_fifo_length();&lt;BR /&gt;uint8_t rx_len = (buffer_length &amp;lt;= *dataSize) ? buffer_length : *dataSize;&lt;BR /&gt;fifo_readall(data, rx_len);&lt;BR /&gt;// CLRC663_read_fifo(data, rx_len);&lt;BR /&gt;*dataSize = rx_len;&lt;/P&gt;&lt;P&gt;return rx_len;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;so at this line, buffer_length = CLRC663_fifo_length() , fifo length does not go higher than 14 bytes and hence I can't read any more data.&lt;/P&gt;&lt;P&gt;I really appreciate any help.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mina&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449158#M9390</guid>
      <dc:creator>minabf61</dc:creator>
      <dc:date>2022-04-26T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449168#M9391</link>
      <description>&lt;P&gt;OK, data are just send to printf() for debug reason, it is just for example.&lt;/P&gt;&lt;P&gt;uint8_t mfrc630_14443p4_transfer(uint8_t cmd[], uint32_t cmdSize, uint8_t data[], uint32_t* dataSize)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;uint32_t resSize = sizeof(res);&lt;BR /&gt;status = mfrc630_transfer(req, reqSize, res, &amp;amp;resSize);&lt;BR /&gt;if(status&amp;gt;0)&lt;BR /&gt;{&lt;BR /&gt;MFRC630_PRINTF("14443P4 (%lub) &amp;lt; ", resSize);&lt;BR /&gt;print_block(res, resSize);&lt;/P&gt;&lt;P&gt;/* NXP phpalI14443p4_Sw.c */&lt;BR /&gt;/* I-Block handling */&lt;BR /&gt;if (0u != (PHPAL_I14443P4_SW_IS_I_BLOCK(res[PHPAL_I14443P4_SW_PCB_POS])))&lt;BR /&gt;{&lt;BR /&gt;//OK&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;/* R(ACK) handling */&lt;BR /&gt;else if ((PHPAL_I14443P4_SW_IS_R_BLOCK(res[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U) &amp;amp;&amp;amp; (PHPAL_I14443P4_SW_IS_ACK(res[PHPAL_I14443P4_SW_PCB_POS]) &amp;gt; 0U))&lt;BR /&gt;{&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;res[] is internal buffer, in code is missing final data handling (memcpy res[] to data[]). According&amp;nbsp;I14443P4 maybe you should check I-Block pcb and with R(ACK) block ask for consequent I-Block frames?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RadomirT_0-1650971926748.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/178013iF3C96EDA4C78140D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RadomirT_0-1650971926748.png" alt="RadomirT_0-1650971926748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Never got so far in debuging.... just tested with android HCE Test tool to printf() console.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449168#M9391</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2022-04-26T11:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449175#M9392</link>
      <description>&lt;P&gt;from NXP phpalI14443p4_Sw.c:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;phStatus_t &lt;/SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_Exchange&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;/* I-BLOCK TRANSMISSION LOOP */&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_IsoHandling()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;/*&lt;SPAN&gt; I-BLOCK RECEPTION LOOP &lt;/SPAN&gt;*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;.....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;phpalI14443p4_Sw_IsoHandling()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:38:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449175#M9392</guid>
      <dc:creator>RadomirT</dc:creator>
      <dc:date>2022-04-26T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: [MRFC630] Can't response from APDU command</title>
      <link>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449242#M9393</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194197"&gt;@RadomirT&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you have directed me to the right place, many thanks for that. At least I know where the problem comes from. So I need to develop my code to do the I-block handeling which I got no information about it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mina&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 13:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/MRFC630-Can-t-response-from-APDU-command/m-p/1449242#M9393</guid>
      <dc:creator>minabf61</dc:creator>
      <dc:date>2022-04-26T13:24:21Z</dc:date>
    </item>
  </channel>
</rss>

