Skip to main content
Visitor II
January 6, 2022
Solved

Integrating RFAL for ST25R3916 with STM32F2xx

  • January 6, 2022
  • 1 reply
  • 1354 views

I'm having trouble integrating RFAL for ST25R3916 with an STM32F2xx project. I downloaded RFAL from here: https://www.st.com/en/embedded-software/stsw-st25rfal002.html#overview. I am trying to follow the steps from section 4.3 How to Run the First Example of the user manual: UM2890 - User manual RF/NFC abstraction layer (RFAL).

The library did not include the following files: st_errno.h, timer.c, timer.h, utils.h. I copied these files from the xcube NFC library as a work around: https://www.st.com/en/embedded-software/x-cube-nfc6.html

I added the RFAL files under the Middlewares directory of my project (see below images), and added these files to the include paths0693W00000HqoeNQAR.png0693W00000HqoeXQAR.png 

I created a platform.h file from the appendix of UM2890 - User manual RF/NFC abstraction layer (RFAL).

If I try to add an RFAL function to my program I always get a undefined reference. For example if I added :

#include "rfal_analogConfig.h"

to my main.cpp

and inside my main function I attempt to call: rfalAnalogConfigInitialize();

I get the below error:

0693W00000HqohbQAB.pngIs there some additional step I am missing? Is there another guide for integrating RFAL I should be following? Or an example project that runs on STM32F2xx?

Thanks,

Patrick

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

    Hi

    the RFAL is a C cource code library and the various demos are provided as C program files. If you want to use the RFAL in a C++ program file, make sure to have the extern "C" linkage-specification.

    Rgds

    BT

    1 reply

    Technical Moderator
    January 7, 2022

    Hi

    the RFAL is a C cource code library and the various demos are provided as C program files. If you want to use the RFAL in a C++ program file, make sure to have the extern "C" linkage-specification.

    Rgds

    BT