Hello.
I am currently testing nRF Cloud and encountering an issue.
I encountered a build error when merging the Peripheral Memfault Diagnostic Service (MDS) sample program into my existing Bluetooth Mesh project.
In file included from C:/ncs/v3.2.1/modules/lib/memfault-firmware-sdk/ports/zephyr/common/metrics/memfault_platform_bluetooth_metrics.c:17:
C:/ncs/v3.2.1/zephyr/subsys/bluetooth/controller/ll_sw/lll.h:95:37: error: 'CONFIG_BT_CTLR_SCAN_AUX_SET' undeclared here (not in a function); did you mean 'CONFIG_BT_CTLR_ADV_SET'?
95 | (CONFIG_BT_CTLR_SCAN_AUX_SET) - 1),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| CONFIG_BT_CTLR_ADV_SET
C:\ncs\v3.2.1\zephyr\subsys\bluetooth\controller\ll_sw\lll.h
#if defined(CONFIG_BT_OBSERVER)
TICKER_ID_SCAN_STOP,
TICKER_ID_SCAN_BASE,
TICKER_ID_SCAN_LAST = ((TICKER_ID_SCAN_BASE) + (BT_CTLR_SCAN_SET) - 1),
#if defined(CONFIG_BT_CTLR_ADV_EXT)
#if defined(CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS)
TICKER_ID_SCAN_AUX,
#else /* !CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS */
TICKER_ID_SCAN_AUX_BASE,
TICKER_ID_SCAN_AUX_LAST = ((TICKER_ID_SCAN_AUX_BASE) +
(CONFIG_BT_CTLR_SCAN_AUX_SET) - 1),
#endif /* !CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS */
To investigate, I tried the opposite approach: adding only the required Bluetooth Mesh configurations to the MDS sample program.
However, this resulted in the exact same error.
Added settings:
CONFIG_BT_OBSERVER=y
CONFIG_BT_EXT_ADV=y
CONFIG_BT_CTLR_ADV_EXT=y
The source of the conflict is as follow:
To enable Mesh, it is necessary to enable CONFIG_BT_OBSERVER, CONFIG_BT_EXT_ADV, and CONFIG_BT_CTLR_ADV_EXT.
When these are enabled, CONFIG_BT_LL_SW_SPLIT becomes a mandatory requirement.
( Specifically, both CONFIG_BT_CTLR_SCAN_AUX_USE_CHAINS and CONFIG_BT_CTLR_SCAN_AUX_SET depend on CONFIG_BT_LL_SW_SPLIT is enabled. )
Is it possible to integrate nRF Cloud without enabling CONFIG_BT_LL_SW_SPLIT?
According to the Kconfig search, CONFIG_BT_LL_SW_SPLIT is marked [EXPERIMENTAL] feature.
Unless there is a specific or mandatory reason for its use, I would like to avoid enabling it to ensure project stability.
a.da