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
  • You need to add these configs to the child image for NET core which is for the hci_ipc.conf.

    Also nRF5340-DK does not have FEM support, so the nrf-radio-fem is not included in the device tree. Which means that the selections CONFIG_MPSL_FEM and CONFIG_MPSL_FEM_SIMPLE_GPIO are invalid without adding the nrf_radio_fem to the device tree node.  If you are using a shield for FEM on the top of the nRF5340 DK, then use the proper board and device tree files to enable this.

Reply
  • You need to add these configs to the child image for NET core which is for the hci_ipc.conf.

    Also nRF5340-DK does not have FEM support, so the nrf-radio-fem is not included in the device tree. Which means that the selections CONFIG_MPSL_FEM and CONFIG_MPSL_FEM_SIMPLE_GPIO are invalid without adding the nrf_radio_fem to the device tree node.  If you are using a shield for FEM on the top of the nRF5340 DK, then use the proper board and device tree files to enable this.

Children
No Data
Related