NFC function is unable to port on LPC55S16-EVK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NFC function is unable to port on LPC55S16-EVK

1,545件の閲覧回数
SY_Kuo
Contributor I

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. https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479

I encountered some problems as below when integrating the example of NfcrdlibEx1_BasicDiscoveryLoop.

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?

2.The MCUXpresso IDE is unable to enter debug mode if the pin RST is connected. How to solve it?

3.In the function of phacDiscLoop_Run, the register "status" always returns 0x4080 and 0x4021.

Please guide me how to solve it. Thanks

0 件の賞賛
返信
5 返答(返信)

1,496件の閲覧回数
SY_Kuo
Contributor I

Hi @diego_charles 

Understood. So, the 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 https://community.nxp.com/t5/NFC-Knowledge-Base/Using-NFC-Reader-Library-with-LPC55S69/ta-p/1117479, 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.

 

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 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.

 

Could you help me to check the settings in project. Thanks.

0 件の賞賛
返信

1,441件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SY_Kuo 

I hope you are doing well!

Yes, according to the CLRC663ARD board quickstart guide , you only require to use the on-board resistors to select the SPI interface. Just to check, do you have the same blue board with the arduino pinout?

Regarding the pin mapping for RST and IRQ pins , in the project lpcxpresso55s69_BasicDiscoveryLoop_BLE-NFC.zip  we will find the RST and IRQ maped to  P1_4 and P1_7 respectively. So,  for the Arduino Reader, that should be the proper mapping of RST and IRQ pins.

 

Regarding the application stuck at phOsal_Sleep()

 Until which point the application is able to RUN before getting stuck into phOsal_Sleep() ?       For example we could check the following:

1 Place a breakpoint at the call of  the following fuction.

status = phApp_ConfigureLPCD();
CHECK_STATUS(status);

If you cannot get further than  CHECK _STATUS function it could mean that the  LPC55 it is not communicating by SPI with the CLRC663.

2  If you the program can  pass the CHECK_STATUS with no errors, If we let the application run and no card is placed near the reader ,  we will see that  after calling the function :

/* Start discovery loop */
 status = phacDiscLoop_Run(pDataParams, wEntryPoint);

The application will wait for an interrupt from the CLRC663 to resume, and get out of phOsal_Sleep() . Is the application stuck here?

 

My apologies for the delay.

Diego

 

 

 

タグ(1)
0 件の賞賛
返信

1,423件の閲覧回数
SY_Kuo
Contributor I

Hi @diego_charles
I got something needs to be clarified.


1. According to the document CLRC663ARD board quickstart guide, the interface is selected to SPI, isn't it?


2. From the 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?


3. I've referred your recommendation 1 to verify. It did blocked in CHECK_STATUS(status).

4. Could you load the hello_v3.zip into your local IED to check for me?

0 件の賞賛
返信

1,383件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SY_Kuo 

1. According to the document CLRC663ARD board quickstart guide, the interface is selected to SPI, isn't it?

Yes, clarifying further , the default  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.

2. From the 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?

Correct , the example is fixed to use SPI.

3  I've referred your recommendation 1 to verify. It did blocked in CHECK_STATUS(status).

  Ok, this seems to tell us that the module it is not communicating with the host LPC55. 

You can check with a logic analyzer the SPI frame to diagnostic communication.

Check further, in the function  phhalHw_Rc663_Cmd_Lpcd_GetConfig() and see if the program gets stuck there while doing SPI comminication.

Try perform a POR on CLRC663 and your EVB and test again. 

 4. Could you load the hello_v3.zip into your local IDE to check for me?

I have taken a quick look at your porting , however , I have not found anything out of place.

Diego

0 件の賞賛
返信

1,517件の閲覧回数
diego_charles
NXP TechSupport
NXP TechSupport

Hi @SY_Kuo 

I hope you are doing well!

The IF pins from the  CLRC663 are used to select the host interface. According to the CLRC663ARD board quickstart guide   section -> 2.2 Interface selection, instead of connecting external voltage to the IF pins,  you will need to solder  resistors to set the value  of IF pins and consequently specify the host interface. 

Regarding  :MCUXpresso IDE is unable to enter debug mode if the pin RST is connected.  Do you mean that after connecting the CLRC663 RST pin to GPIO pin PIO1_4 of the EVK you are not able  start a new debug session?

Diego.

 

 

0 件の賞賛
返信