cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduce flash?

JSope.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

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

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

2 REPLIES 2
Brian TIDAL
ST Employee

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

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.
JSope.1
Associate II

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

Regards.

Joaquin.