NFC Reader Library Example UART Communication

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NFC Reader Library Example UART Communication

2,452 Views
utsavikalpesh
Contributor V

Hi,

I am working on NFC Reader Library.

Starting with Basic Discovery Loop example, I want to use UART as communication interface between NFC(as HOST  Application) and CLR663. Currently, Library is communicating with CLR663 using SPI interface.

My queries are:

1) I want to use UART communication in place of SPI communication. How to change this in NFC Library Basic Discovery Loop demo example?

Effect of Changing UART Driver:

I tried to replace SPI driver in UserSpi.c file to UART driver of my HOST. And Driver Opened and Read Write are not creating any problem.

But when I tried to run demo, Program got crash (segmentation fault !!). Program got crash in Basic Discovery Loop 12. 

I mean, only changes are done in replacing of driver and left SPI driver open, read and write functions disabling. I have not done any changes in Basic Discovery Loop demo.

Also, There is no effect of whether board is connected or not, Tag is near to board or not. Program Crash..!!

 

Please suggest me proper way to change in NFC Reader Library source code.

Note that, after Loop9, I can tx data like 63, 192 and receive data like: 5.(I dont know data send and received is right or wrong... :smileyconfused:)

2)  Say if UART communication is started between CLR663 and HOST properly, then how can I verify protocols used for NFC and CLR663 communication, as I have ,mentioned above, I dont know data received and transmitted is right or wrong?

Is there any document which provide information about NFC and CLR663 protocol in details ?

3) As per application Note of CLR663 board, I come to know that IRQ connection is required for Microcontroller and CLR663 communication.Can NFC Reader Library read Tag without this IRQ connections? 

Please note that, changes in CLR663 board for UART Connection with HOST is already done with the help of application note. 

4) If I want to use IRQ for interrupt Microcontroller then is there any settings I need to do in Basic Discovery Loop demo example?

Is there any NFC example for uart base communication with CLR663??

Please reply me as soon as possible.

Regards,

Utsavi B.

0 Kudos
Reply
1 Reply

2,053 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Utsavi B.,

1)we have uart based communication with CLR663, but it is not based on the NFC reader library, the proper scenario is based on a PC connected with CLRC663 thru UART. There is serial tool with script files available, please refer to https://www.nxp.com/downloads/en/software/210910.zip for details.

2) Actually I could not understand the requirement, usually LoadProtocol command is used to load the protocol, which reads out the EEPROM Register Set Protocol Area and overwrites the content of the Rx- and Tx- related registers. You may refer to the data sheet for details.https://www.nxp.com/docs/en/data-sheet/CLRC663.pdf 

3)I think it is possible, but you have to keep polling the status register until it changes.

4)The IRQ is enabled in that demo, if you want to do more in the ISR, you may refer to CLIF_IRQHandler().

So far NFC reader library doesn't support UART communication, only SPI is available.

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply