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.

  • Hi

    I checked for duplicates and still its showing error 

    I unistalled nrf connect sdk and vs code , and reinstalled by following the documentation

    I clone the project from git and try to build the project using custom board but it is giving the cmake error in my PC.

    The sample project is working fine.

    but in other PC the custom project can build successfully.

    Problem:

    1. CMake generation for hci_ipc failed, aborting.  Command: 1

        message(FATAL_ERROR "CMake generation for ${ACI_NAME} failed, aborting. Command: ${ret}")

    2. command failed with return code: 1

      message(FATAL_ERROR "command failed with return code: ${ret}")

    The complete error log is in the attached text file

    Thankyou

  • Hi,

    @Susheel Nuguru

      message(FATAL_ERROR "command failed with return code: ${ret}")

    Can you please check the above attached error logs?

Reply Children
No Data
Related