This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

cmake error for compiling with i2c interface of external ic with nrf9160

HI

i am trying to build i2c project for external interface of adxl345 and i am getting below error 

Creating solution i2c_adxl345.emProject
E:/Nordiac_semi/v1.4.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160 -DBOARD_DIR=E:\Nordiac_semi\ncs\zephyr\boards\arm\nrf9160dk_nrf9160 -BE:\Nordiac_semi\ncs\zephyr\samples\basic\i2c_adxl345\build_nrf9160dk_nrf9160 -SE:\Nordiac_semi\ncs\zephyr\samples\basic\i2c_adxl345 -DNCS_TOOLCHAIN_VERSION=1.4.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=E:\Nordiac_semi\EmbeddedStudio_ARM_Nordic_v510d_win_x64\arm_segger_embedded_studio_v510d_win_x64_nordic/html/configure_nordic_project_menuconfig.py
-- Application: E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345
-- Zephyr version: 2.4.0 (E:/Nordiac_semi/ncs/zephyr)
-- Found west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160
-- Cache files will be written to: E:/Nordiac_semi/ncs/zephyr/.cache
-- Found dtc: C:/gnuarmemb/v1.4.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/gnuarmemb/v1.4.0/toolchain/opt)
-- Found BOARD.dts: E:/Nordiac_semi/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/nrf9160dk_nrf9160.overlay
-- Generated zephyr.dts: E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/build_nrf9160dk_nrf9160/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/build_nrf9160dk_nrf9160/zephyr/include/generated/devicetree_unfixed.h
Parsing E:/Nordiac_semi/ncs/zephyr/Kconfig
Loaded configuration 'E:/Nordiac_semi/ncs/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig'
Merged configuration 'E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/prj.conf'
-- Configuring incomplete, errors occurred!
See also "E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/build_nrf9160dk_nrf9160/CMakeFiles/CMakeOutput.log".
See also "E:/Nordiac_semi/ncs/zephyr/samples/basic/i2c_adxl345/build_nrf9160dk_nrf9160/CMakeFiles/CMakeError.log".
-- Using NCS Toolchain 1.4.0 for building. (C:/gnuarmemb/v1.4.0/toolchain/cmake)

error: I2C_2_NRF_TWIM (defined at drivers/i2c/Kconfig.nrfx:47) is assigned in a configuration file,
but is not directly user-configurable (has no prompt). It gets its value indirectly from other
symbols. See docs.zephyrproject.org/.../CONFIG_I2C_2_NRF_TWIM.html
and/or look up I2C_2_NRF_TWIM in the menuconfig/guiconfig interface. The Application Development
Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
might be helpful too.

CMake Error at E:/Nordiac_semi/ncs/zephyr/cmake/kconfig.cmake:239 (message):
command failed with return code: 1
Call Stack (most recent call first):
E:/Nordiac_semi/ncs/zephyr/cmake/app/boilerplate.cmake:591 (include)
CMakeLists.txt:10 (include)



error: cmake failed
create_nordic_project.py failed (1)

can you please guide me for the same. one more thing whenever trying to build new project errors came out can you please explain the number of steps to be followed for new application and how to find out requied configuration for different pheripherals using with nrf9160?

Related