Skip to main content
JNieu.1
Associate II
August 26, 2020
Solved

How to use the ST25R95 on an IRQ basis?

  • August 26, 2020
  • 11 replies
  • 2249 views

Hello,

How do I use the S25R95 on an IRQ/Callback basis?

What I have found so far is that there are three callbacks (UpperLayer, PreTxRx, PostTxRx) you can use for the ST25R95, but these are only available during the regular polling/running process.

I am looking for a way to have the ST25R95 initiate so that it runs in a silent mode always checking if there is an NFC device near. And when there is, it sends a signal via a pin like IRQ_OUT.

I currently have the situation where I'm required to continuously poll the device to see if there is an active device, but I want my main program not to have to do that. I want it to be checking for a, probably GPIO IRQ input and then respond to that using the functions to read information from the NFC Device.

Is this possible, and if so, what would be the solution to do so?

Kind regards,

Joey

    This topic has been closed for replies.
    Best answer by Brian TIDAL

    Hi,

    the RFAL is portable among different MCU.  X-CUBE-NFC3 provides by default the support of NUCLEO-L476RG, NUCLEOF401RE and NUCLEO-F103RB but it can be easily ported on other STM32 boards including NUCLEO-G070RB. I've attached the STM32CubeMX project file used on NUCLEO-L476 so that you can easily replicate the setup on NUCLEO-G070RB.

    Rgds

    BT

    11 replies

    Brian TIDAL
    ST Technical Moderator
    August 28, 2020

    Hi

    As far as I know:

    • STM32CubeMX (I am using v6.0.1) supports FreeRTOS on NUCLEO-G070RB (just enable the CMSIS_V2 interface)
    • ST does not provide FreeRTOS support of the ST25R95. Anyway, some community members (e.g. @Slan​)  have successfully ported the X-CUBE-NFC3 on FreeRTOS

    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.