cancel
Showing results for 
Search instead for 
Did you mean: 

ST25R3916_v2.8.0_Linux_demo_v1.1 RFAL Librabry compilation failed

ADant.1
Associate II

I am working on ST25DVXXKC tags with ST25R3916 Reader based application.

Issue: While using ST25R3916_v2.8.0_Linux_demo_v1.1 for raspberry pi, I encountered an issue -> "library compilation failed with undefined symbol".

Cause : As I am using NFC-V technology, I had disabled other technologies in rfal_platfrom.h. e.g.

#define RFAL_FEATURE_NFCA false

Hence function related to other technologies were not available. But for "RFAL Card Detection" in rfal_cd.c rfalCdGetDetectCardStatus function, there are no check for technology defines causing library compilation failed.

Probable Solutions :

1. Add checks for technology according to macros defined e.g.

#if RFAL_FEATURE_NFCA
rfalNfcaPollerInitialize(); /* Initialize for NFC-A */
err = rfalFieldOnAndStartGT(); /* Turns the Field On if not already and start GT timer */
if( err != RFAL_ERR_NONE )
{
gCd.lastErr = err;
gCd.st = RFAL_CD_ST_ERROR; /* Unable to turn the field On, cannot continue Card Detection */
break;
}

gCd.st = RFAL_CD_ST_NFCA_TECHDET;
#else
gCd.st = RFAL_CD_ST_NFCB_INIT; /* Move to NFC-B */
#endif /** #if RFAL_FEATURE_NFCA */

and so on for other technologies.

2. define new macro for RFAL Card Detection feature if card detect feature is not required.

#define RFAL_FEATURE_CARD_DETECT false

in rfal_platfrom.h and use it in rfal-cd.c

 

Thanks and best reagrds,

Amrut Dant.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Brian TIDAL
ST Employee

Hi,

thanks for reporting this issue. As the Card Detection feature is probably not used in your application, feel free to simply remove this file.

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

1 REPLY 1
Brian TIDAL
ST Employee

Hi,

thanks for reporting this issue. As the Card Detection feature is probably not used in your application, feel free to simply remove this file.

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.