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

Can't find softdevice_ble_evt_handler_set

I keep getting an error: ../src/main.c: In function 'ble_stack_init': ../src/main.c:517:5: error: implicit declaration of function 'softdevice_ble_evt_handler_set' [-Werror=implicit-function-declaration]

Where is this function supposed to be declared? I assumed it would be in softdevice_handler.h, but I can't find it anywhere. Maybe my file is corrupted, but it seems unlikely. More likely my include paths are messed up from trying to move this stuff to Eclipse, but I've spent half a day searching for this elusive "softdevice_ble_evt_handler_set"

Parents Reply
  • It transpires that I was using a plugin that is supposed to provide a template for nRF51822 nprojects. However, it may be old, as it defines BLE_STACK_SUPPORT_REQUIRED, as opposed to BLE_STACK_SUPPORT_REQD. I think I'll abandon the plugin template and go back to the long-winded way of setting up projects in Eclipse, as even after changing this I'm still getting loads of other errors.

Children
No Data
Related