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 

  • There are clearly unresolved dependencies in the project and the log is giving those details of what dependencies are unsatisfied.

    You can either ignore the warnings if these settings are not something you explicitly set by adding this in prj.conf

    CONFIG_WARNINGS_AS_ERRORS=n

    You can give me your prj.conf so that I can try to see if the dependencies are satisfied there. also add some logs

    CONFIG_BT_CTLR=y                  
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251 
    CONFIG_BT_CTLR_PHY=y               
    CONFIG_BT_CTLR_PHY_2M_SUPPORT=y    
    CONFIG_BT_CTLR_ADV_EXT=n           
    CONFIG_BT_CTLR_SDC_TX_PACKET_COUNT=3 
    
    # Logging Configuration
    CONFIG_LOG=y                      
    CONFIG_LOG_DEFAULT_LEVEL=3         
    CONFIG_LOG_BACKEND_RTT=y           
    
    # Memory Configuration
    CONFIG_MAIN_STACK_SIZE=2048       
    CONFIG_HEAP_MEM_POOL_SIZE=10240    
    
    # Minimal C Library Configuration
    CONFIG_COMMON_LIBC_MALLOC=y        
    CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=102400 
    
    # Power Management
    CONFIG_HAS_POWEROFF=y             
    CONFIG_POWEROFF=y                  
    
    # Miscellaneous Configuration
    CONFIG_SPI_SLAVE=n                 

  • HI,

    Thanks for the reply

    I add these to prj.conf file but showing error that;

    error_log (2).zip

    Can you check the log?

    Thank you

  • my bad, I thought CONFIG_POWEROFF is user configurable but it does not look like it is not directly user configurable.

    Can you attach your project so that I can try to fix the error for you and save some time in trying to understand your setup?

  • Hi

    I am able to figure out where the issue is,

    I try to build from the first commit 

    Those commits are working fine and in one of the commit we added hci_ipc.conf file to the child_image , After that  cmake error is coming only in my PC

    CONFIG_BT_MAX_CONN=4
    CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2
    
    CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
    CONFIG_BT_BUF_ACL_RX_SIZE=251
    CONFIG_BT_BUF_ACL_TX_SIZE=251
    
    CONFIG_BT_EXT_ADV=y
    CONFIG_BT_EXT_ADV_MAX_ADV_SET=2
    
    CONFIG_BT_CTLR_SDC_TX_PACKET_COUNT=21

    Can you check this file and find a solution for it?

    Thank you

Related