cancel
Showing results for 
Search instead for 
Did you mean: 

Write/read from NFC tag

Luke_abc
Associate III

Hi, 

I am new to NFC and trying to make writing/reading from an NFC work.

I would like to read/write to st25tv tag and I use st25r39 reader IC. 

I have successfully ported the RFAL and NDEF library provided by ST. I have used ndef_demo example to start with. I run the application and was expecting to enter the if loop as shown below. Unfortunately nothing is happening.

 

Luke_abc_1-1705422347904.png

Also, the IRQ pin of st25r39 is not connected to the MCU. Does RFAL library needs this pin to be connected to the MCU ? Can the RFAL library work without this pin ?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

no we don't have a reference for this scenario but such can be achieved by changing functions st25R391xWaitForInterruptTimed() and st25R391xGetInterrupt() to not look at the global variable but to always issue a read of the interrupt status registers.

Few other customers have implemented such in the past at well. But it will cause heavy traffic on SPI and is very inconvenient for debugging using logic analyzer.

 

BR, Ulysses

 

View solution in original post

4 REPLIES 4
Brian TIDAL
ST Employee

Hi,

Using the IRQ pin is the preferred approach (in that case the ST25R39xx ISR should be called inside the interrupt handler). All the demos provided on st.com for ST25R39xx are based on IRQ pin handling. See RF/NFC abstraction layer (RFAL) User Manual for details about the interrupt management.

Make sure to enable ST25R_SELFTEST and ST25R_SELFTEST_TIMER compilation switches to check that your porting is functional.

Rgds

BT

 

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi @Brian TIDAL ,

Thank you for your reply. Can I please ask the alternative if the IRQ pin is not connected to the MCU ? Do you have any reference for this scenario ?

Hi,

no we don't have a reference for this scenario but such can be achieved by changing functions st25R391xWaitForInterruptTimed() and st25R391xGetInterrupt() to not look at the global variable but to always issue a read of the interrupt status registers.

Few other customers have implemented such in the past at well. But it will cause heavy traffic on SPI and is very inconvenient for debugging using logic analyzer.

 

BR, Ulysses

 

Luke_abc
Associate III

Thanks @Ulysses HERNIOSUS