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

undefined reference to ble_conn_params_init()

Hello,

I was trying to implement the proxy profile into the Enocean switch example to try if the friend node for the switch can be provisioned using the Mobile App. 
I encountered the error reading "undefined reference to ble_conn_params_init"

I included the file in the project, also included the path to the folder containing the file but this compilation error isn't being removed.

What might be the reason?

Thank you.

Parents Reply Children
  • Hi.

    I included the file in the project, also included the path to the folder containing the file but this compilation error isn't being removed.

     I see you have included the .c file, but have you included the header file aswell? #include "ble_conn_params.h"

    - Andreas

  • Again, the fact that the 'Code' and 'Data' columns are empty shows that it is not being built.

    Have you done a full rebuild - not just a build ?

    Have you tried 'Clean' before 'Rebuild' ?

    What if you compile just that file on its own ?

    Have you looked inside the file to see if it is all being disabled by some #if ... ?

    Your screenshot shows that you have other warnings. Are there also other errors? 

    As always, fix the earlier errors & warning first.

  • As awneil was saying, the ble_conn_params.c was being blocked by an #if.. I cleared it off by defining few things in app_config.h file. I removed all the errors.

    When I debugged it onto a board, it was loaded but the commissioning of the switch wasn't successful. When I tried to debug it on a different board, the code broke and it shows an error in the mesh_init() function.

    I can share the code with you if this is a private ticket and you can test it on your boards.

  • As awneil was saying, the ble_conn_params.c was being blocked by an #if.. I cleared it off by defining few things in app_config.h file. I removed all the errors.

    Excellent - now please mark the solution - click the 'Verify Answer' button.

    When I debugged it onto a board, it was loaded but the commissioning of the switch wasn't successful. When I tried to debug it on a different board, the code broke and it shows an error in the mesh_init() function

    That's a whole different question - so start a new thread!

Related