This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Error: L6218E: Undefined symbol nfc_ble_pair_init

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.

Parents
  • Thank you for your answer. No, I haven't, I didn't even know for sdk_config.h, I'm pretty new with nrf52. I compared sdk_config.h files from both projects and merged them into the correct one. I also noticed that I have manually add required .c files to the project and now it works. I came to the part where I'm getting this error:

    ..\..\..\..\..\..\components\libraries\ecc\ecc.c(55): error:  #5: cannot open source input file "uECC.h": No such file or directory
    

    And I tried to search for that file on my disk, but it's not there! Also, I get that same error when I try to build original example.

    I solved this by downloading micro-ecc library from GitHub and this has dissapeared but now I have this error:

    ..\..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(87): error:  #18: expected a ")"
    

    This is inside micro-ecc library!! What should I do with these errors?

Reply
  • Thank you for your answer. No, I haven't, I didn't even know for sdk_config.h, I'm pretty new with nrf52. I compared sdk_config.h files from both projects and merged them into the correct one. I also noticed that I have manually add required .c files to the project and now it works. I came to the part where I'm getting this error:

    ..\..\..\..\..\..\components\libraries\ecc\ecc.c(55): error:  #5: cannot open source input file "uECC.h": No such file or directory
    

    And I tried to search for that file on my disk, but it's not there! Also, I get that same error when I try to build original example.

    I solved this by downloading micro-ecc library from GitHub and this has dissapeared but now I have this error:

    ..\..\..\..\..\..\external\micro-ecc\micro-ecc\asm_arm.inc(87): error:  #18: expected a ")"
    

    This is inside micro-ecc library!! What should I do with these errors?

Children
No Data
Related