2022-01-06 01:52 PM
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 paths
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:
Is 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
Solved! Go to Solution.
2022-01-07 05:00 AM
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
2022-01-07 05:00 AM
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