Hi Jared,
I have installed GNU Arm Embedded Toolchain as you suggested and set the environmental variable as shown in the link.
check the below output:
C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 9-2019-q4-major) 9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>setx ZEPHYR_TOOLCHAIN_VARIANT gnuarmemb
SUCCESS: Specified value was saved.
C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>setx GNUARMEMB_TOOLCHAIN_PATH "C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major"
SUCCESS: Specified value was saved.
C:\Program Files (x86)\GNU Tools Arm Embedded\9 2019-q4-major>
Then again I tried to build in blinky example. Set the directory to the blink folder on CMD and tried to run west build -b circuitdojo_feather_nrf9160ns
.
I still got an error. check it below:
C:\Users\rahul\ncs\zephyr\samples\basic\blinky>west build -b circuitdojo_feather_nrf9160ns
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): C:/Users/rahul/ncs/zephyr/cmake/app/boilerplate.cmake
-- Application: C:/Users/rahul/ncs/zephyr/samples/basic/blinky
-- Zephyr version: 2.4.0 (C:/Users/rahul/ncs/zephyr)
-- Found west (found suitable version "0.8.0", minimum required is "0.7.1")
-- Board: circuitdojo_feather_nrf9160ns
-- Cache files will be written to: C:/Users/rahul/ncs/zephyr/.cache
-- Found dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
CMake Error at C:/Users/rahul/ncs/zephyr/cmake/toolchain/gnuarmemb/generic.cmake:16 (message):
Nothing found at GNUARMEMB_TOOLCHAIN_PATH: 'C:/Program Files (x86)/GNU Arm
Embedded Toolchain/9 2020-q2-update'
Call Stack (most recent call first):
C:/Users/rahul/ncs/zephyr/cmake/generic_toolchain.cmake:65 (include)
C:/Users/rahul/ncs/zephyr/cmake/app/boilerplate.cmake:589 (include)
C:/Users/rahul/ncs/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
C:/Users/rahul/ncs/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:\Users\rahul\ncs\zephyr\samples\basic\blinky\build' '-SC:\Users\rahul\ncs\zephyr\samples\basic\blinky' -GNinja
C:\Users\rahul\ncs\zephyr\samples\basic\blinky>
I do not know what is going wrong, from the last three days resolving the same issue.
Please Help Jared.
Regards, Rahul Kidecha