CMake error when when trying to change FEM and coded PHY settings for BT Mesh (Light and Light_Switch example)

So when changing the hci_icp.conf settings to have the configuration below, i get "CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/kconfig.cmake:358 (message):" plus the warnings for said configuration settings. Using the nordic nRF5340-DK, with v2.6.1 SDK. the only modification we've made to the example code is to have Light_Switch blink continusouly without the push of a button so that we can do range testing without needing someone standing with the light_switch.

# Copy controller configuration from prj.conf
CONFIG_BT_CTLR_DUP_FILTER_LEN=0
CONFIG_BT_CTLR_LE_ENC=n
CONFIG_BT_CTLR_CHAN_SEL_2=n
CONFIG_BT_CTLR_MIN_USED_CHAN=n
CONFIG_BT_CTLR_PRIVACY=n

#FEM Config
CONFIG_MPSL=y
CONFIG_MPSL_FEM=y
CONFIG_MPSL_FEM_SIMPLE_GPIO=y
CONFIG_BT_CTLR_TX_PWR_DYNAMIC_CONTROL=y
CONFIG_BT_CTLR_TX_PWR_ANTENNA=20

CONFIG_BT_CTLR_PHY_2M=y
CONFIG_BT_CTLR_PHY_CODED=y
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
CONFIG_BT_CTLR_SDC_MAX_CONN_EVENT_LEN_DEFAULT=4000000
Parents
  • Customer added the following compiler error log.

     *  Executing task: nRF Connect: Build: light/build (active) 
    
    Building light
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.6.1/nrf/My_Projects/light/build c:/ncs/v2.6.1/nrf/My_Projects/light"
    
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/ncs/v2.6.1/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/ncs/v2.6.1/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: ubx_evknorab12_nrf5340_cpunet
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.6.1/zephyr/boards/arm/ubx_evknorab12_nrf5340/ubx_evknorab12_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/dts.cmake
    
    warning: BT_CTLR_DATA_LENGTH_MAX (defined at
    C:/ncs/v2.6.1/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:131,
    C:/ncs/v2.6.1/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:101,
    subsys/bluetooth\controller/Kconfig:490) was assigned the value '251' but got the value '27'. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_CTLR_DATA_LENGTH_MAX and/or look up
    BT_CTLR_DATA_LENGTH_MAX in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: BT_CTLR_DUP_FILTER_LEN (defined at subsys/bluetooth\controller/Kconfig:149) was assigned
    the value '0' but got the value ''. Check these unsatisfied dependencies: BT_LL_SW_SPLIT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_CTLR_DUP_FILTER_LEN and/or look up
    BT_CTLR_DUP_FILTER_LEN in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    Parsing C:/ncs/v2.6.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.6.1/zephyr/boards/arm/ubx_evknorab12_nrf5340/ubx_evknorab12_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.6.1/zephyr/samples/bluetooth/hci_ipc/prj.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/subsys/bluetooth/mesh/hci_ipc_child_image_overlay.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/My_Projects/light/child_image/hci_ipc.conf'
    warning: user value 251 on the int symbol BT_CTLR_DATA_LENGTH_MAX (defined at C:/ncs/v2.6.1/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:131, C:/ncs/v2.6.1/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:101, subsys/bluetooth\controller/Kconfig:490) ignored due to being outside the active range ([27, 27]) -- falling back on defaults
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/kconfig.cmake:358 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.6.1/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/CMakeFiles/CMakeOutput.log".
    See also "C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/CMakeFiles/CMakeError.log".
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FAILED: build.ninja 
    C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --regenerate-during-build -SC:\ncs\v2.6.1\zephyr\samples\bluetooth\hci_ipc -BC:\ncs\v2.6.1\nrf\My_Projects\light\build\hci_ipc
    FAILED: modules/nrf/samples/hci_ipc_subimage-prefix/src/hci_ipc_subimage-stamp/hci_ipc_subimage-build hci_ipc/zephyr/zephyr.hex hci_ipc/zephyr/zephyr.elf hci_ipc/zephyr/merged_CPUNET.hex C:/ncs/v2.6.1/nrf/My_Projects/light/build/modules/nrf/samples/hci_ipc_subimage-prefix/src/hci_ipc_subimage-stamp/hci_ipc_subimage-build C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.hex C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.elf C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/merged_CPUNET.hex 
    cmd.exe /C "cd /D C:\ncs\v2.6.1\nrf\My_Projects\light\build\hci_ipc && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\ncs\v2.6.1\nrf\My_Projects\light\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

Reply
  • Customer added the following compiler error log.

     *  Executing task: nRF Connect: Build: light/build (active) 
    
    Building light
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/ncs/v2.6.1/nrf/My_Projects/light/build c:/ncs/v2.6.1/nrf/My_Projects/light"
    
    [0/1] Re-running CMake...
    Loading Zephyr default modules (Zephyr base (cached)).
    -- Application: C:/ncs/v2.6.1/zephyr/samples/bluetooth/hci_ipc
    -- CMake version: 3.21.0
    -- Cache files will be written to: C:/ncs/v2.6.1/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/ncs/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: ubx_evknorab12_nrf5340_cpunet
    -- Found host-tools: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found BOARD.dts: C:/ncs/v2.6.1/zephyr/boards/arm/ubx_evknorab12_nrf5340/ubx_evknorab12_nrf5340_cpunet.dts
    -- Generated zephyr.dts: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/dts.cmake
    
    warning: BT_CTLR_DATA_LENGTH_MAX (defined at
    C:/ncs/v2.6.1/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:131,
    C:/ncs/v2.6.1/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:101,
    subsys/bluetooth\controller/Kconfig:490) was assigned the value '251' but got the value '27'. See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_CTLR_DATA_LENGTH_MAX and/or look up
    BT_CTLR_DATA_LENGTH_MAX in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    warning: BT_CTLR_DUP_FILTER_LEN (defined at subsys/bluetooth\controller/Kconfig:149) was assigned
    the value '0' but got the value ''. Check these unsatisfied dependencies: BT_LL_SW_SPLIT (=n). See
    http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_BT_CTLR_DUP_FILTER_LEN and/or look up
    BT_CTLR_DUP_FILTER_LEN in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.
    
    
    Parsing C:/ncs/v2.6.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v2.6.1/zephyr/boards/arm/ubx_evknorab12_nrf5340/ubx_evknorab12_nrf5340_cpunet_defconfig'
    Merged configuration 'C:/ncs/v2.6.1/zephyr/samples/bluetooth/hci_ipc/prj.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/subsys/bluetooth/mesh/hci_ipc_child_image_overlay.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/ncs/v2.6.1/nrf/My_Projects/light/child_image/hci_ipc.conf'
    warning: user value 251 on the int symbol BT_CTLR_DATA_LENGTH_MAX (defined at C:/ncs/v2.6.1/nrf\samples\common\mcumgr_bt_ota_dfu/Kconfig:131, C:/ncs/v2.6.1/nrf\subsys\bluetooth\services\fast_pair/Kconfig.fast_pair:101, subsys/bluetooth\controller/Kconfig:490) ignored due to being outside the active range ([27, 27]) -- falling back on defaults
    
    error: Aborting due to Kconfig warnings
    
    CMake Error at C:/ncs/v2.6.1/zephyr/cmake/modules/kconfig.cmake:358 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/ncs/v2.6.1/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/ncs/v2.6.1/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
      C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/ncs/v2.6.1/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:5 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/CMakeFiles/CMakeOutput.log".
    See also "C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/CMakeFiles/CMakeError.log".
    ninja: error: rebuilding 'build.ninja': subcommand failed
    FAILED: build.ninja 
    C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --regenerate-during-build -SC:\ncs\v2.6.1\zephyr\samples\bluetooth\hci_ipc -BC:\ncs\v2.6.1\nrf\My_Projects\light\build\hci_ipc
    FAILED: modules/nrf/samples/hci_ipc_subimage-prefix/src/hci_ipc_subimage-stamp/hci_ipc_subimage-build hci_ipc/zephyr/zephyr.hex hci_ipc/zephyr/zephyr.elf hci_ipc/zephyr/merged_CPUNET.hex C:/ncs/v2.6.1/nrf/My_Projects/light/build/modules/nrf/samples/hci_ipc_subimage-prefix/src/hci_ipc_subimage-stamp/hci_ipc_subimage-build C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.hex C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/zephyr.elf C:/ncs/v2.6.1/nrf/My_Projects/light/build/hci_ipc/zephyr/merged_CPUNET.hex 
    cmd.exe /C "cd /D C:\ncs\v2.6.1\nrf\My_Projects\light\build\hci_ipc && C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.exe --build . --"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\ncs\v2.6.1\nrf\My_Projects\light\build'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 
    

Children
Related