Skip to main content
Visitor II
March 3, 2023
Solved

How to reduce flash?

  • March 3, 2023
  • 2 replies
  • 1200 views

Hello, I am testing the st25r95 with the X-nucleo-nfc03a1 attached to a nucleo-g0b1re, I am successfully running the democycle and reading nfc tags.

In my application I have a limited amount of flash available (<20 Kb) and also,

I only need to detect tags which have the ISO14443A (NFC-A) protocol. To reduce

the amount of flash. One thing I have done (as suggested in another post “How

to minimize flash usage�?) is to set in platform.h -> RFAL FEATURES

CONFIGURATION -> RFAL_FEATURE_NFCV to false. That indeed reduces the flash

usage, but then the communication with the st25r95 stops.

With all the functions enable:

0693W00000aI6ylQAC.pngRFAL_FEATURE_NFCV to false:

Only initialization.

0693W00000aI6yvQAC.pngCan you give some advice about how to properly deactivate the protocols I don’t need?

Thank you in advance.

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

    Hi,

    I guess your application is based on X-CUBE-NFC3.

    When a technology (RFAL_FEATURE_NFCV) is deactivated (set to false), one must make sure that the discParam.techs2Find does not include this technology in demoIni().

    In your case, the discParam.techs2Find in demoIni should be modified to:

    discParam.techs2Find      = RFAL_NFC_POLL_TECH_A;

    and the RFAL features should be modified to:

    RFAL_FEATURE_NFCA           true 

    RFAL_FEATURE_NFCB           false

    RFAL_FEATURE_NFCF           false

    RFAL_FEATURE_NFCV           false

    RFAL_FEATURE_T1T            true 

    RFAL_FEATURE_T2T            true 

    RFAL_FEATURE_T4T            true 

    RFAL_FEATURE_ST25TB          false

    RFAL_FEATURE_ST25xV          false

    RFAL_FEATURE_DYNAMIC_ANALOG_CONFIG   false

    RFAL_FEATURE_DYNAMIC_POWER       false

    RFAL_FEATURE_ISO_DEP          true 

    RFAL_FEATURE_ISO_DEP_POLL       true 

    RFAL_FEATURE_ISO_DEP_LISTEN      false

    RFAL_FEATURE_NFC_DEP          true 

    Rgds

    BT

    2 replies

    Technical Moderator
    March 3, 2023

    Hi,

    I guess your application is based on X-CUBE-NFC3.

    When a technology (RFAL_FEATURE_NFCV) is deactivated (set to false), one must make sure that the discParam.techs2Find does not include this technology in demoIni().

    In your case, the discParam.techs2Find in demoIni should be modified to:

    discParam.techs2Find      = RFAL_NFC_POLL_TECH_A;

    and the RFAL features should be modified to:

    RFAL_FEATURE_NFCA           true 

    RFAL_FEATURE_NFCB           false

    RFAL_FEATURE_NFCF           false

    RFAL_FEATURE_NFCV           false

    RFAL_FEATURE_T1T            true 

    RFAL_FEATURE_T2T            true 

    RFAL_FEATURE_T4T            true 

    RFAL_FEATURE_ST25TB          false

    RFAL_FEATURE_ST25xV          false

    RFAL_FEATURE_DYNAMIC_ANALOG_CONFIG   false

    RFAL_FEATURE_DYNAMIC_POWER       false

    RFAL_FEATURE_ISO_DEP          true 

    RFAL_FEATURE_ISO_DEP_POLL       true 

    RFAL_FEATURE_ISO_DEP_LISTEN      false

    RFAL_FEATURE_NFC_DEP          true 

    Rgds

    BT

    JSope.1Author
    Visitor II
    March 3, 2023

    Thank you, modifying the discParam.techs2Find solved my issue.

    Regards.

    Joaquin.