I followed the "Getting Started Assistant" and can import and build the nRF9160 side.
nRF Connect v3.6.1 Getting Started Assistant: GnuArmEmb_path: /opt/gnuarmemb-8-2019-q3-update sourcecode_root: /.../BLE_thingy91_1 ncs_tag: v1.4.2 Segger Embedded Studio - Nordic Edition - v5.34a
SES -> Open nRF Connect SDK Project:
nRF Connect SDK Release: 1.4.2 (/.../BLE_thingy91_1/ncs) nRF Connect Toolchain Version: NONE Projects: asset_tracker (after clicking cellular below) Board Name: thingy91_nrf9160ns (select ns version, means Non-Secure version) Build Directory: /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf9160ns
Works, "Build Solution" works, all seems well.
nRF Connect SDK Release: 1.4.2 (/.../BLE_thingy91_1/ncs) nRF Connect Toolchain Version: NONE Projects: asset_tracker (after clicking cellular below) Board Name: thingy91_nrf52840 Build Directory: /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf52840 Clean Build Directory (checked, or not, no difference)
Fails on import, Cannot create project, create_nordic_project.py failed (1).
Creating solution asset_tracker.emProject
cmake -GNinja -DBOARD=thingy91_nrf52840 -DBOARD_DIR=/.../BLE_thingy91_1/ncs/nrf/boards/arm/thingy91_nrf52840 -B/.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf52840 -S/.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker -DZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb -DGNUARMEMB_TOOLCHAIN_PATH=/opt/gnuarmemb-8-2019-q3-update -DEXTRA_KCONFIG_TARGETS=menuconfig_ses -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses=/usr/share/segger_embedded_studio_for_arm_5.34a_nordic/html/configure_nordic_project_menuconfig.py
-- Application: /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker
-- Zephyr version: 2.4.0 (/.../BLE_thingy91_1/ncs/zephyr)
-- Found Python3: /usr/bin/python3.8 (found suitable exact version "3.8.5") found components: Interpreter
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: thingy91_nrf52840
-- Cache files will be written to: /home/.../.cache/zephyr
-- Found dtc: /usr/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/opt/gnuarmemb-8-2019-q3-update)
-- Found BOARD.dts: /.../BLE_thingy91_1/ncs/nrf/boards/arm/thingy91_nrf52840/thingy91_nrf52840.dts
-- Generated zephyr.dts: /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf52840/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf52840/zephyr/include/generated/devicetree_unfixed.h
Parsing /.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/Kconfig
Loaded configuration '/.../BLE_thingy91_1/ncs/nrf/boards/arm/thingy91_nrf52840/thingy91_nrf52840_defconfig'
Merged configuration '/.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/prj.conf'
-- Configuring incomplete, errors occurred!
Including boilerplate (Zephyr base): /.../BLE_thingy91_1/ncs/zephyr/cmake/app/boilerplate.cmake
warning: CONSOLE_HANDLER (defined at drivers/console/Kconfig:39) was assigned the value 'y' but got
the value 'n'. Check these unsatisfied dependencies: UART_CONSOLE (=n). See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_CONSOLE_HANDLER.html and/or look up
CONSOLE_HANDLER 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.
warning: The choice symbol CONSOLE_GETCHAR (defined at subsys/console/Kconfig:16) was selected (set
=y), but no symbol ended up as the choice selection. See
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_CONSOLE_GETCHAR.html and/or look up
CONSOLE_GETCHAR 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.
warning: BSD_LIBRARY (defined at /.../BLE_thingy91_1/ncs/nrf/lib/bsdlib/Kconfig:8) has direct dependencies TRUSTED_EXECUTION_NONSECURE with value n, but is currently being y-selected by the following symbols:
- MODEM_INFO (defined at /.../BLE_thingy91_1/ncs/nrf/lib/modem_info/Kconfig:7), with value y, direct dependencies y (value: y)
error: Aborting due to Kconfig warnings
CMake Error at /.../BLE_thingy91_1/ncs/zephyr/cmake/kconfig.cmake:239 (message):
command failed with return code: 1
Call Stack (most recent call first):
/.../BLE_thingy91_1/ncs/zephyr/cmake/app/boilerplate.cmake:591 (include)
/.../BLE_thingy91_1/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/.../BLE_thingy91_1/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:35 (include_boilerplate)
CMakeLists.txt:20 (find_package)
error: cmake failed
create_nordic_project.py failed (1)
I've tried v1.4.2, v1.4.0, master, v1.3.0, same results. I've tried a complete second walk through the Getting Started Assistant in case building the nRF9160 side first left some traces, same results.
cd /.../BLE_thingy91_1/ncs/nrf git checkout v1.4.0 west update
I tried v1.2.0 but that appears to be dramatically different, and probably requires different tool versions(?).
Changing into the build directory (/.../BLE_thingy91_1/ncs/nrf/applications/asset_tracker/build_thingy91_nrf52840), and running "west build -t clean" also fails, same configuration errors.
Can somebody help?