Skip to main content
Visitor II
February 22, 2023
Solved

RFAL Library with ST25R3920

  • February 22, 2023
  • 3 replies
  • 1308 views

Hello! I'm starting a project with the ST25R3920 and want to use the RFAL library. I downloaded the latest version from from here and during compilation it's asking to define either ST25R3916 _or_ ST25R16B. I guessed and tried st25R3916 (no B) and everything builds properly but it won't detect NFC cards.

I have a project using the same chip and the old RFAL library (2.2.0) that works, but after updating to the latest 2.8.0 it seems to have broken things.

Is this the correct RFAL library to use with `#define ST25R3916`?

Thanks

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

    Hi,

    the correct RFAL define for the ST25R3920 is ST25R3916. I would not recommend to use #define but to rather use the compiler -D option.

    Can you share more details about your HW and SW:

    • which MCU do you use? STM32?
    • Is your application build on top of the RFAL High Layer (e.g. rfalNfcDiscover API) or directly on the RFAL technology API (e.g. rfalNfcaPollerInitialize API)
    • Can you check that the ST25R3920 IRQ is properly managed (define ST25R_SELFTEST and ST25R_SELFTEST_TIMER then check the return code of st25r3916Initialize)

    Rgds

    BT

    3 replies

    C_1Author
    Visitor II
    February 22, 2023
    Technical Moderator
    February 23, 2023

    Hi,

    the correct RFAL define for the ST25R3920 is ST25R3916. I would not recommend to use #define but to rather use the compiler -D option.

    Can you share more details about your HW and SW:

    • which MCU do you use? STM32?
    • Is your application build on top of the RFAL High Layer (e.g. rfalNfcDiscover API) or directly on the RFAL technology API (e.g. rfalNfcaPollerInitialize API)
    • Can you check that the ST25R3920 IRQ is properly managed (define ST25R_SELFTEST and ST25R_SELFTEST_TIMER then check the return code of st25r3916Initialize)

    Rgds

    BT

    C_1Author
    Visitor II
    February 23, 2023

    Thanks for the ST25R3920 clarification.

    The detection is also fixed! Turning on ST25R_SELFTEST and SELFTEST_TIMER led me to the issue which turned out to be a problem with IRQ handling. Thank you for the help