Weird nRF5340 behavior

I'm trying to run a working nrf52840dk app on nrf5340 and getting a weird CMake error:

I MUST SAY THAT THERE IS NOTHING WRONG WITH THE CMAKE WHEN BUILDING ON NRF52840DK Disappointed

Please help!

Parents
  • Images for error messages are much worse than text copy& paste. You are literally missing the part that is actually important.

  • warning: Experimental symbol BT_LL_SW_SPLIT is enabled.
    
    
    warning: ENTROPY_NRF5_RNG (defined at drivers/entropy/Kconfig.nrf5:14) has direct dependencies !ENTROPY_NRF_FORCE_ALT && DT_HAS_NORDIC_NRF_RNG_ENABLED && ENTROPY_GENERATOR with value n, but is currently being y-selected by the following symbols:
     - BT_LLL_VENDOR_NORDIC (defined at subsys/bluetooth\controller\Kconfig.ll_sw_split:8), with value y, direct dependencies SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y), and select condition SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y)
    
    error: Aborting due to Kconfig warnings
    
    Parsing C:/Nordicsemi/v2.2.0/zephyr/Kconfig
    Loaded configuration 'C:/Nordicsemi/v2.2.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/Nordicsemi/Dalit/Stabilized_BLE/prj.conf'
    Merged configuration 'C:/Nordicsemi/Dalit/Stabilized_BLE/build5340sec/zephyr/misc/generated/extra_kconfig_options.conf'
    CMake Error at C:/Nordicsemi/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/Nordicsemi/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/Nordicsemi/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      C:/Nordicsemi/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Nordicsemi/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\Nordicsemi\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Nordicsemi\toolchains\v2.2.0\opt\bin\python.exe' '-Bc:\Nordicsemi\Dalit\Stabilized_BLE\build5340sec' -GNinja '-Sc:\Nordicsemi\Dalit\Stabilized_BLE'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    I see some warnings that didn't appear on the nrf52840 build. The CMakeLists files in this project are valid for the 840 build as well - but here, suddenly, it doesn't

Reply
  • warning: Experimental symbol BT_LL_SW_SPLIT is enabled.
    
    
    warning: ENTROPY_NRF5_RNG (defined at drivers/entropy/Kconfig.nrf5:14) has direct dependencies !ENTROPY_NRF_FORCE_ALT && DT_HAS_NORDIC_NRF_RNG_ENABLED && ENTROPY_GENERATOR with value n, but is currently being y-selected by the following symbols:
     - BT_LLL_VENDOR_NORDIC (defined at subsys/bluetooth\controller\Kconfig.ll_sw_split:8), with value y, direct dependencies SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y), and select condition SOC_COMPATIBLE_NRF && BT_LL_SW_SPLIT && BT_CTLR && BT_HCI && BT (value: y)
    
    error: Aborting due to Kconfig warnings
    
    Parsing C:/Nordicsemi/v2.2.0/zephyr/Kconfig
    Loaded configuration 'C:/Nordicsemi/v2.2.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_defconfig'
    Merged configuration 'C:/Nordicsemi/Dalit/Stabilized_BLE/prj.conf'
    Merged configuration 'C:/Nordicsemi/Dalit/Stabilized_BLE/build5340sec/zephyr/misc/generated/extra_kconfig_options.conf'
    CMake Error at C:/Nordicsemi/v2.2.0/zephyr/cmake/modules/kconfig.cmake:328 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/Nordicsemi/v2.2.0/nrf/cmake/modules/kconfig.cmake:29 (include)
      C:/Nordicsemi/v2.2.0/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
      C:/Nordicsemi/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
      C:/Nordicsemi/v2.2.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:97 (include_boilerplate)
      CMakeLists.txt:4 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    FATAL ERROR: command exited with status 1: 'c:\Nordicsemi\toolchains\v2.2.0\opt\bin\cmake.EXE' '-DWEST_PYTHON=c:\Nordicsemi\toolchains\v2.2.0\opt\bin\python.exe' '-Bc:\Nordicsemi\Dalit\Stabilized_BLE\build5340sec' -GNinja '-Sc:\Nordicsemi\Dalit\Stabilized_BLE'
    
     *  The terminal process terminated with exit code: 1. 
     *  Terminal will be reused by tasks, press any key to close it. 

    I see some warnings that didn't appear on the nrf52840 build. The CMakeLists files in this project are valid for the 840 build as well - but here, suddenly, it doesn't

Children
Related