Error while compiling nrf vs code

Hi,

I am using nRF5340 DK and nRF SDK V.2.6.1 for my project

While compiling the custom project in nrf vs code , I am getting the following error;

Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'B:\Nordic\toolchains\cf2149caf2\opt\bin\cmake.EXE' -DWEST_PYTHON=B:/Nordic/toolchains/cf2149caf2/opt/bin/python.exe '-Bb:\Nordic\ridegrid-dev-ananth-prod_release01\build' -GNinja '-Sb:\Nordic\ridegrid-dev-ananth-prod_release01'

In problem side;

Unknown symbol CONFIG_BT_SCAN

Unknown symbol CONFIG_BT_SCAN_FILTER_ENABLE

Unknown symbol CONFIG_BT_SCAN_UUID_CNT

Unknown symbol CONFIG_BT_SCAN_NAME_CNT

Unknown symbol CONFIG_BT_GATT_DM

Unknown symbol CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU

Unknown symbol CONFIG_NRF53_UPGRADE_NETWORK_CORE

Unknown symbol CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU_SPEEDUP

I can compile the example codes 

There is showing error only  while compiling the custom project in vs code

Thanks 

Parents
  • The issue seems to be with your new custom compile target add_custom_target as shown in the log below

    CMake Error at B:/Nordic/v2.6.1/nrf/cmake/multi_image.cmake:185 (add_custom_target):
      add_custom_target cannot create target "guiconfig" because another target
      with the same name already exists.  The existing target is a custom target
      created in source directory "B:/Nordic/ridegrid".  See documentation for
      policy CMP0002 for more details.
    Call Stack (most recent call first):
      B:/Nordic/v2.6.1/nrf/CMakeLists.txt:29 (include)

    Seems like this is duplicate to something that already existing in your folder.

Reply
  • The issue seems to be with your new custom compile target add_custom_target as shown in the log below

    CMake Error at B:/Nordic/v2.6.1/nrf/cmake/multi_image.cmake:185 (add_custom_target):
      add_custom_target cannot create target "guiconfig" because another target
      with the same name already exists.  The existing target is a custom target
      created in source directory "B:/Nordic/ridegrid".  See documentation for
      policy CMP0002 for more details.
    Call Stack (most recent call first):
      B:/Nordic/v2.6.1/nrf/CMakeLists.txt:29 (include)

    Seems like this is duplicate to something that already existing in your folder.

Children
No Data
Related