Can't add BLE to CAF sample in NCS 1.8.0. The CONFIG_BT_SMP option is forced to n

Hi there,

This should be straight forward but has me stumped. I'm trying to add BLE to my CAF based application and can't do and recreated the same problem with the samples/caf sample.

Adding a new freestanding application from using the caf example works find and builds. Adding

CONFIG_BT=y
CONFIG_BT_SMP=y
CONFIG_BT_CAF_BLE_STATE=y

to proj.conf as described in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.8.0/nrf/libraries/caf/ble_state.html#caf-ble-state doesn't work. VS Code warns: "CONFIG_BT_SMP was assigned the value y, but got the value n. Missing dependencies:
(BT_CONN && BT_HCI_HOST && BT_RPC_STACK) || (BT_CONN && BT_HCI_HOST && BT_HCI && BT)" With the suggested "fix" being to remove the entry. Those dependencies can't be set though.

Argh, it should not be difficult. I've followed the Webinar that adds BLE to a project and while it works for other samples, it doesn't work for the CAF one.

Any help is appreciated!

Parents Reply Children
No Data
Related