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

Error assigning CONFIG_UART_2_NRF_UARTE IN prj.conf

Hi,

I am tryng to get the nrf9160 and the nrf 52840 to communicate through uart on the nrf9160-dk. I am following this post for that: https://devzone.nordicsemi.com/f/nordic-q-a/58034/uart-communication-between-nrf52840-and-nrf9160-on-nrf9160-dk/235304#235304

My prj.conf looks like follows:

CONFIG_SERIAL=y
CONFIG_SOC_SERIES_NRF91X=y
CONFIG_UART_NRFX=y
CONFIG_CONSOLE=y
CONFIG_UART_PIPE=y
CONFIG_UART_PIPE_ON_DEV_NAME="UART_2"
CONFIG_UART_CONSOLE_LOG_LEVEL_INF=y
CONFIG_UART_2_NRF_UARTE=y
CONFIG_UART_2_NRF_FLOW_CONTROL=y
CONFIG_UART_INTERRUPT_DRIVEN=y

My CMakeLists.txt looks like follows:

cmake_minimum_required(VERSION 3.8.2)

find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(NONE)

target_sources(app PRIVATE src/main.c)

The problem appears in CONFIG_UART_2_NRF_UARTE, if deleted the project is created successfully but when incluiding it, the following error appears:

After that in the SES Output log appears the following:

Creating solution uart_pipe_91.emProject
C:/Users/mbasi/ncs/v1.5.0/toolchain/opt/bin/cmake.exe -GNinja -DBOARD=nrf9160dk_nrf9160ns -DBOARD_DIR=C:\Users\mbasi\ncs\v1.5.0\zephyr\boards\arm\nrf9160dk_nrf9160 -BC:\nrf_projects\uart_pipe_91\build_nrf9160dk_nrf9160ns -SC:\nrf_projects\uart_pipe_91 -DNCS_TOOLCHAIN_VERSION=1.5.0 -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=C:\Users\mbasi\ncs\v1.5.0\toolchain\segger_embedded_studio/html/configure_nordic_project_menuconfig.py
-- Application: C:/nrf_projects/uart_pipe_91
-- Zephyr version: 2.4.99 (C:/Users/mbasi/ncs/v1.5.0/zephyr)
-- Found west (found suitable version "0.9.0", minimum required is "0.7.1")
-- Board: nrf9160dk_nrf9160ns, Revision: 0.7.0
-- Cache files will be written to: C:/Users/mbasi/ncs/v1.5.0/zephyr/.cache
-- Found dtc: C:/Users/mbasi/ncs/v1.5.0/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (C:/Users/mbasi/ncs/v1.5.0/toolchain/opt)
-- Found BOARD.dts: C:/Users/mbasi/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns.dts
-- Generated zephyr.dts: C:/nrf_projects/uart_pipe_91/build_nrf9160dk_nrf9160ns/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/nrf_projects/uart_pipe_91/build_nrf9160dk_nrf9160ns/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/nrf_projects/uart_pipe_91/build_nrf9160dk_nrf9160ns/zephyr/include/generated/device_extern.h
Parsing C:/Users/mbasi/ncs/v1.5.0/zephyr/Kconfig
Loaded configuration 'C:/Users/mbasi/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_defconfig'
Merged configuration 'C:/Users/mbasi/ncs/v1.5.0/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160ns_0_7_0.conf'
Merged configuration 'C:/nrf_projects/uart_pipe_91/prj.conf'
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base (cached)): C:/Users/mbasi/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake
-- Using NCS Toolchain 1.5.0 for building. (C:/Users/mbasi/ncs/v1.5.0/toolchain/cmake)

error: UART_2_NRF_UARTE (defined at drivers/serial/Kconfig.nrfx:175) 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_UART_2_NRF_UARTE.html
and/or look up UART_2_NRF_UARTE 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 C:/Users/mbasi/ncs/v1.5.0/zephyr/cmake/kconfig.cmake:262 (message):
command failed with return code: 1
Call Stack (most recent call first):
C:/Users/mbasi/ncs/v1.5.0/zephyr/cmake/app/boilerplate.cmake:534 (include)
C:/Users/mbasi/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/mbasi/ncs/v1.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
CMakeLists.txt:3 (find_package)

error: cmake failed
create_nordic_project.py failed (1)

Any guess on how can I fix this or what is the problem?

Thanks in advance

Related