Hi,
I'm trying to integrate Bluetooth pairing code from experimental_ble_app_hrs_nfc_pairing example into ble_app_uart example (I have a project based on this example, that's why, and I need pairing functionality), but I'm having problems. I added include paths to required libraries, which were missing when compared both projects, I have included nfc_ble_pair_lib.h and I've added this function to my main.c:
static void nrf_ble_pairing_init(void)
{
ret_code_t err_code;
err_code = nfc_ble_pair_init((nfc_pairing_mode_t)NFC_PAIRING_MODE);
APP_ERROR_CHECK(err_code);
}
And it compiles successfully. But when I try to call nrf_ble_pairing_init() from main() function, I'm getting this:
Using Compiler 'V5.06 update 5 (build 528)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'nrf52832_xxaa'
linking...
.\_build\nrf52832_xxaa.axf: Error: L6218E: Undefined symbol nfc_ble_pair_init (referred from main.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
".\_build\nrf52832_xxaa.axf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
I tried to include all other libraries from this other project, but no success. I even tried to add nfc_ble_pair_lib.c to my Application group (via Add existing file option) but no success. What am I missing?
Thank you in advance.