cancel
Showing results for 
Search instead for 
Did you mean: 

RFAL Library with ST25R3920

C_1
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

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

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.

View solution in original post

3 REPLIES 3
C_1
Associate II
Brian TIDAL
ST Employee

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

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.
C_1
Associate II

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