Skip to main content
Visitor II
November 13, 2019
Solved

Ref to RFAL library (en.STSW-ST25RFAL001), What should be RF buffer size (RFAL_FEATURE_NFC_RF_BUF_LEN), in the union rfalNfcBuffer ?

  • November 13, 2019
  • 4 replies
  • 1492 views

Ref. files from the latest download of RFAL - en.STSW-ST25RFAL001 - rfal_nfc.c, rfal_nfc.h.

Devices - ST25R3911B-DISCO & M24LR16E (ISO15693 mode).

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

    Hi,

    if you plan to recompile the ST25R3911B-DISCO firmware, the recommended package is STSW-ST25R002.

    Anyway, the various RFAL_FEATURE_*** macros are defined in the platform.h file from the X-NUCLEO-NFC5 package or from STSW-ST25R002 package. For RFAL_FEATURE_NFC_RF_BUF_LEN, this is:

    #define RFAL_FEATURE_NFC_RF_BUF_LEN      258U    /*!< RF buffer length used by RFAL NFC layer                  */

    rgds

    BT

    4 replies

    Technical Moderator
    November 13, 2019

    Hi,

    if you plan to recompile the ST25R3911B-DISCO firmware, the recommended package is STSW-ST25R002.

    Anyway, the various RFAL_FEATURE_*** macros are defined in the platform.h file from the X-NUCLEO-NFC5 package or from STSW-ST25R002 package. For RFAL_FEATURE_NFC_RF_BUF_LEN, this is:

    #define RFAL_FEATURE_NFC_RF_BUF_LEN      258U    /*!< RF buffer length used by RFAL NFC layer                  */

    rgds

    BT

    PPKAuthor
    Visitor II
    November 13, 2019

    .

    Technical Moderator
    November 14, 2019

    Hi

    in addition to Ulysses answer: if you need to support the M24LR16E, you can use the ST25PC-NFC application on Windows with the ST25R3911B-DISCO board.

    Rgds

    BT

    Technical Moderator
    November 14, 2019

    Hi,

    I assume you will not use the PC communication / USB ?!

    Instead of using  STSW-ST25R002 I recommend in this case basing your work on X-CUBE-NFC5 v2.0.0 which has a much cleaner code basis for embedded software development and also comes with a quite recent RFAL version.

    Regards, Ulysses

    PPKAuthor
    Visitor II
    November 14, 2019

    @Brian TIDAL_O​ @Ulysses HERNIOSUS_O​ 

    Thanks for the details.

    I will not use the PC communication / USB for my custom board.

    Got a better idea of it from the below picture of RFAL documentation.

    For my case, RFAL NFC - ISO DEP - NFCV - to ST25R3911.

    0690X00000As2RWQAZ.png