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

Eclipse Undefined Reference to ble_dfu_buttonless_async_svci_init. DFU is enabled in SDK_CONFIG.h.

Hi,

I'm currently using SDK v14.2.0 and I'm attempting to merge the buttonless DFU bluetooth example into the bluetooth template project within the Eclipse Oxygen environment.

The project was compiling correctly before I attempted to integrate the DFU code.  Once I put the DFU code in I started encountering a problem with the linker regarding an undefined reference to "ble_dfu_buttonless_async_svci_init" and "ble_dfu_buttonless_init" that I've placed in services_init().  I have everything defined in the SDK_CONFIG.h file that is in the example buttonless DFU example.  I have all the same files included as the buttonless dfu example.

Within the Eclipse environment I am able to right-click either the "ble_dfu_buttonless_async_svci_init" or "ble_dfu_buttonless_init" and open the declaration.  ble_dfu.c, ble_dfu_unbonded.c, and ble_dfu.h are all within the project and the folders are included within the project properties paths and symbols/includes.

Any suggestions on how to solve this?

Thanks,

Daniel

Parents
  • Hi,

    Have you tried to rebuild all, possibly after cleaning the build?

    Are you including ble_dfu.h from all compilation units using the ble_dfu_buttonless_async_svci_init() and ble_dfu_buttonless_init() functions?

    It really sounds strange, if you have included the library files in the project, added the header files, and all compiles, but does not link like that... If you have still not figured it out after trying the above, I would like to have a look at the full project...

    Regards,
    Terje

Reply
  • Hi,

    Have you tried to rebuild all, possibly after cleaning the build?

    Are you including ble_dfu.h from all compilation units using the ble_dfu_buttonless_async_svci_init() and ble_dfu_buttonless_init() functions?

    It really sounds strange, if you have included the library files in the project, added the header files, and all compiles, but does not link like that... If you have still not figured it out after trying the above, I would like to have a look at the full project...

    Regards,
    Terje

Children
No Data
Related