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

west build -b nrf9160_pca20035 FAILED (Windows 10)

 

Hi, 

I am trying to build an "asset tracking" application in Windows 10 using power shell, but it failed. 

Please find the logs below and direct me to the correct path.  

PS C:\ncs\nrf\applications\asset_tracker> west build -b nrf9160_pca20035ns
-- west build: build configuration:
source directory: C:\ncs\nrf\applications\asset_tracker
build directory: C:\ncs\nrf\applications\asset_tracker\build (created)
BOARD: nrf9160_pca20035ns (origin: command line)
-- west build: generating a build system
-- Using application from 'C:/ncs/nrf/applications/asset_tracker'
Zephyr version: 2.0.99
-- Found PythonInterp: C:/Python38/python.exe (found suitable version "3.8.0", minimum required is "3.4")
-- git describe failed: fatal: No tags can describe '5aa1e0d5fd58bb60cd76c19bfb175888dd473e8f'.
Try --always, or create some tags.;
BUILD_VERSION is left undefined
-- Selected BOARD nrf9160_pca20035ns
-- Found west: C:/Python38/Scripts/west.exe (found suitable version "0.6.0", minimum required is "0.6.0")
-- Cache files will be written to: C:\Users\spanidea\AppData\Local/.cache/zephyr
USING OUT OF TREE BOARD
CMake Error at C:/ncs/zephyr/cmake/extensions.cmake:1403 (message):
Assertion failed: Zephyr toolchain variant invalid: please set the
ZEPHYR_TOOLCHAIN_VARIANT-variable
Call Stack (most recent call first):
C:/ncs/zephyr/cmake/generic_toolchain.cmake:54 (assert)
C:/ncs/zephyr/cmake/app/boilerplate.cmake:507 (include)
CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!
ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-BC:\ncs\nrf\applications\asset_tracker\build' '-SC:\ncs\nrf\applications\asset_tracker' -GNinja -DBOARD=nrf9160_pca20035ns
PS C:\ncs\nrf\applications\asset_tracker>

Related