<?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: NFC function is unable to port on LPC55S16-EVK in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1259395#M44582</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185159"&gt;@SY_Kuo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well!&lt;/P&gt;
&lt;P&gt;Yes, according to the&lt;A href="https://www.nxp.com/docs/en/user-guide/UM11309.pdf" target="_self"&gt; CLRC663ARD board quickstart guide&lt;/A&gt; , you only require to use the on-board resistors to select the SPI interface. Just to check, do you have the same &lt;A href="https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/clev6630ard-nfc-frontend-clrc663-iplus-i-arduino-interface-board:BLE-NFC" target="_self"&gt;blue board with the arduino&lt;/A&gt; pinout?&lt;/P&gt;
&lt;P&gt;Regarding the pin mapping for RST and IRQ pins , in the project &lt;SPAN class="lia-link-navigation lia-attachment-link-disabled lia-link-disabled"&gt;lpcxpresso55s69_BasicDiscoveryLoop_&lt;STRONG&gt;BLE-NFC&lt;/STRONG&gt;.zip&lt;/SPAN&gt;&amp;nbsp; we will find the RST and IRQ maped to&amp;nbsp; P1_4 and P1_7 respectively. So,&amp;nbsp; for the Arduino Reader, that should be the proper mapping of RST and IRQ pins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the application stuck at &lt;EM&gt;phOsal_Sleep()&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;STRONG&gt;Until which point the application is able to RUN before getting stuck into phOsal_Sleep() ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;For example we could check the following:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt; Place a breakpoint at the call of&amp;nbsp; the following fuction.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;status = phApp_ConfigureLPCD();
CHECK_STATUS(status);&lt;/LI-CODE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If you cannot get further than&amp;nbsp; CHECK _STATUS function it could mean that the&amp;nbsp; LPC55 it is not communicating by SPI with the CLRC663.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&amp;nbsp; If you the program can&amp;nbsp; pass the CHECK_STATUS with no errors, If we let the application run and no card is placed near the reader ,&amp;nbsp; we will see that&amp;nbsp; after calling the function :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/* Start discovery loop */
 status = phacDiscLoop_Run(pDataParams, wEntryPoint);&lt;/LI-CODE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;The application will wait for an interrupt from the CLRC663 to resume, and get out of &lt;EM&gt;phOsal_Sleep() . Is the application stuck here?&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My apologies for the delay.&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Apr 2021 06:34:07 GMT</pubDate>
    <dc:creator>diego_charles</dc:creator>
    <dc:date>2021-04-09T06:34:07Z</dc:date>
    <item>
      <title>NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1254869#M44485</link>
      <description>&lt;P&gt;Hello everyone, We are going to use LPC55S16-EVK and CLEV6630ARD to verify the NFC function. I also refer following ticket to integrate the example. &lt;A href="https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I encountered some problems as below when integrating the example of NfcrdlibEx1_BasicDiscoveryLoop.&lt;/P&gt;&lt;P&gt;1.From the Figure 2 in the ticket, it tells user how to connect both evaluation boards. It list 9 pins needs to be connected. However, the connector J7 and J8 in LPC55S16-EVK doesn't support IF0 and IF1. Are both pins necessary?&lt;/P&gt;&lt;P&gt;2.The MCUXpresso IDE is unable to enter debug mode if the pin RST is connected. How to solve it?&lt;/P&gt;&lt;P&gt;3.In the function of phacDiscLoop_Run, the register "status" always returns 0x4080 and 0x4021.&lt;/P&gt;&lt;P&gt;Please guide me how to solve it. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 09:33:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1254869#M44485</guid>
      <dc:creator>SY_Kuo</dc:creator>
      <dc:date>2021-03-31T09:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1256012#M44510</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185159"&gt;@SY_Kuo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well!&lt;/P&gt;
&lt;P&gt;The IF pins from the&amp;nbsp; &lt;SPAN&gt;CLRC663&lt;/SPAN&gt; are used to select the host interface. According to the &lt;A href="http://See&amp;nbsp;https://www.nxp.com/docs/en/user-guide/UM11309.pdf" target="_self"&gt;CLRC663ARD board quickstart guide&amp;nbsp;&amp;nbsp;&lt;/A&gt;&amp;nbsp;section -&amp;gt; 2.2 Interface selection, instead of connecting external voltage to the IF pins,&amp;nbsp; you will need to solder&amp;nbsp; resistors to set the value&amp;nbsp; of IF pins and consequently specify the host interface.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding&amp;nbsp; :MCUXpresso IDE is unable to enter debug mode if the pin RST is connected.&amp;nbsp; Do you mean that after connecting the CLRC663 RST pin to GPIO pin PIO1_4 of the EVK you are not able&amp;nbsp; start a new debug session?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Diego.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 23:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1256012#M44510</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-04-01T23:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1257028#M44530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/89833"&gt;@diego_charles&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Understood. So, the&amp;nbsp;requisite pins in the NFC module including MOSI, MISO, SCK, CSEL, RST, IRQ and GND, is it correct? When I double-check the attachment in &lt;A href="https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479&lt;/A&gt;, I found that the pin defined in attachment is different from the LPC55S69-EVK/LPC55S16-EVK. The pin, RST and IRQ, are defined to P0_15 and P1_10 respectively. But, the pin in EVK should be set to P1_4 and P1_7. Please tell me which configuration is correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've test and put the NFC device near the NFC reader, and nothing happened. So, I also utilized the debug mode to trace the program, and it always blocked at a function called&amp;nbsp;phOsal_Sleep(). I've confirmed those pins are all configured with proper settings, the setting can be find at the Board_LPC55S16RC663.h in the attachment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me to check the settings in project. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 02:56:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1257028#M44530</guid>
      <dc:creator>SY_Kuo</dc:creator>
      <dc:date>2021-04-08T02:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1259395#M44582</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185159"&gt;@SY_Kuo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing well!&lt;/P&gt;
&lt;P&gt;Yes, according to the&lt;A href="https://www.nxp.com/docs/en/user-guide/UM11309.pdf" target="_self"&gt; CLRC663ARD board quickstart guide&lt;/A&gt; , you only require to use the on-board resistors to select the SPI interface. Just to check, do you have the same &lt;A href="https://www.nxp.com/design/development-boards/freedom-development-boards/mcu-boards/clev6630ard-nfc-frontend-clrc663-iplus-i-arduino-interface-board:BLE-NFC" target="_self"&gt;blue board with the arduino&lt;/A&gt; pinout?&lt;/P&gt;
&lt;P&gt;Regarding the pin mapping for RST and IRQ pins , in the project &lt;SPAN class="lia-link-navigation lia-attachment-link-disabled lia-link-disabled"&gt;lpcxpresso55s69_BasicDiscoveryLoop_&lt;STRONG&gt;BLE-NFC&lt;/STRONG&gt;.zip&lt;/SPAN&gt;&amp;nbsp; we will find the RST and IRQ maped to&amp;nbsp; P1_4 and P1_7 respectively. So,&amp;nbsp; for the Arduino Reader, that should be the proper mapping of RST and IRQ pins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the application stuck at &lt;EM&gt;phOsal_Sleep()&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;STRONG&gt;Until which point the application is able to RUN before getting stuck into phOsal_Sleep() ? &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/STRONG&gt;For example we could check the following:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt; Place a breakpoint at the call of&amp;nbsp; the following fuction.&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;status = phApp_ConfigureLPCD();
CHECK_STATUS(status);&lt;/LI-CODE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;If you cannot get further than&amp;nbsp; CHECK _STATUS function it could mean that the&amp;nbsp; LPC55 it is not communicating by SPI with the CLRC663.&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&amp;nbsp; If you the program can&amp;nbsp; pass the CHECK_STATUS with no errors, If we let the application run and no card is placed near the reader ,&amp;nbsp; we will see that&amp;nbsp; after calling the function :&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/* Start discovery loop */
 status = phacDiscLoop_Run(pDataParams, wEntryPoint);&lt;/LI-CODE&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;The application will wait for an interrupt from the CLRC663 to resume, and get out of &lt;EM&gt;phOsal_Sleep() . Is the application stuck here?&lt;/EM&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My apologies for the delay.&lt;/P&gt;
&lt;P&gt;Diego&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 06:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1259395#M44582</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-04-09T06:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1260219#M44604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/89833"&gt;@diego_charles&lt;/a&gt;&lt;BR /&gt;I got something needs to be clarified.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1. According to the document CLRC663ARD board quickstart guide, the interface is selected to SPI, isn't it?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. From the&amp;nbsp;lpcxpresso55s69_BasicDiscoveryLoop_CLEV6630b.zip, it was fixed to use the SPI interface to control the NFC reader, isn't it? Should I do further definition to select the SPI?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;3. I've referred your recommendation 1 to verify. It did blocked in&amp;nbsp;CHECK_STATUS(status).&lt;/P&gt;&lt;P&gt;4. Could you load the hello_v3.zip into your local IED to check for me?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 05:20:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1260219#M44604</guid>
      <dc:creator>SY_Kuo</dc:creator>
      <dc:date>2021-04-12T05:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: NFC function is unable to port on LPC55S16-EVK</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1263353#M44680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/185159"&gt;@SY_Kuo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. According to the document CLRC663ARD board quickstart guide, the interface is selected to SPI, isn't it?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Yes, clarifying further , the default&amp;nbsp; interface is SPI as stated in the guide. So, for a brand new board, you do not need to solder any resistors to use SPI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. From the&amp;nbsp;lpcxpresso55s69_BasicDiscoveryLoop_CLEV6630b.zip, it was fixed to use the SPI interface to control the NFC reader, isn't it? Should I do further definition to select the SPI?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Correct , the example is fixed to use SPI.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3 &amp;nbsp;I've referred your recommendation 1 to verify. It did blocked in&amp;nbsp;CHECK_STATUS(status).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&amp;nbsp; Ok, this seems to tell us that the module it is not communicating with the host LPC55.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;You can check with a logic analyzer the SPI frame to diagnostic communication. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Check further, in the function&amp;nbsp; phhalHw_Rc663_Cmd_Lpcd_GetConfig() and see if the program gets stuck there while doing SPI comminication.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;Try perform a POR on CLRC663 and your EVB and test again.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;4. Could you load the hello_v3.zip into your local IDE to check for me?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;I have taken a quick look at your porting , however , I have not found anything out of place.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Diego&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 07:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NFC-function-is-unable-to-port-on-LPC55S16-EVK/m-p/1263353#M44680</guid>
      <dc:creator>diego_charles</dc:creator>
      <dc:date>2021-04-16T07:59:40Z</dc:date>
    </item>
  </channel>
</rss>

