Cmake Error While Building Blinky Sample


Daniel Wing
 

Hello,

I am trying to west build the blinky sample from the getting started guide (https://docs.zephyrproject.org/latest/getting_started/index.html). However, the below error comes up:


C:\zephyrproject\zephyr>west build -p auto -b nrf52840dk_nrf52840 samples\basic\blinky
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/zephyrproject/zephyr/samples/basic/blinky
-- Zephyr version: 2.6.99 (C:/zephyrproject/zephyr), build: zephyr-v2.6.0-806-gf818d8770b04
-- Found west (found suitable version "0.11.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Cache files will be written to: C:/zephyrproject/zephyr/.cache
-- Found toolchain: gnuarmemb (C:/gnu_arm_embedded)
CMake Error at C:/zephyrproject/zephyr/cmake/compiler/gcc/generic.cmake:8 (message):
  Zephyr was unable to find the toolchain.  Is the environment misconfigured?


  User-configuration:

  ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb

  Internal variables:

  CROSS_COMPILE: C:/gnu_arm_embedded/bin/arm-none-eabi-

  TOOLCHAIN_HOME: C:/gnu_arm_embedded

Call Stack (most recent call first):
  C:/zephyrproject/zephyr/cmake/generic_toolchain.cmake:42 (include)
  C:/zephyrproject/zephyr/cmake/app/boilerplate.cmake:570 (include)
  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
  C:/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: 'C:\Program Files\CMake\bin\cmake.EXE' '-DWEST_PYTHON=c:\python39\python.exe' '-BC:\zephyrproject\zephyr\build' '-SC:\zephyrproject\zephyr\samples\basic\blinky' -GNinja



I have tried restarting my pc, and checked the GNU ARM Embedded toolchain installation and that the environment variables were set correctly. I have also checked that the cmake folder exists in the zephyrproject and I tried reinstalling the cmake packages. Still the same error keeps occurring.

Any help with diagnosing and fixing this issue would be greatly appreciated.


Best,
Daniel Wing

Join users@lists.zephyrproject.org to automatically receive all group messages.