Skip to main content
ADant.1
Associate
December 11, 2023
Solved

ST25R3916_v2.8.0_Linux_demo_v1.1 RFAL Librabry compilation failed

  • December 11, 2023
  • 1 reply
  • 820 views

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.

 

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

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

1 reply

Brian TIDAL
Brian TIDALBest answer
Technical Moderator
December 11, 2023

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.