-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Replies: 1 comment · 5 replies
-
The documentation you linked above is very outdated and obsolete. Please refer to the latest documentation: Have you set |
Beta Was this translation helpful? Give feedback.
All reactions
-
Yes, echo $GNUARMEMB_TOOLCHAIN_PATH returns (the correct location of the file) I have made progress by doing west -pristine Now I am here (zephyenv) gasisk@MacBook-Pro zephyr % west build -p auto -b adafruit_feather_stm32f405 samples/basic/blinky_pwm CMake Error at /Users/gasisk/zephyrproject/zephyr/cmake/app/boilerplate.cmake:99 (add_custom_target): -- Zephyr version: 2.7.99 (/Users/gasisk/zephyrproject/zephyr), build: v2.7.0-rc3-187-g6cfc6fa8e1ba CMake Warning at /Users/gasisk/zephyrproject/zephyr/cmake/extensions.cmake:2378 (message):
Call Stack (most recent call first): CMake Warning at /Users/gasisk/zephyrproject/zephyr/cmake/extensions.cmake:2378 (message):
Call Stack (most recent call first): CMake Warning at /Users/gasisk/zephyrproject/zephyr/cmake/extensions.cmake:2378 (message):
Call Stack (most recent call first): CMake Warning at /Users/gasisk/zephyrproject/zephyr/cmake/extensions.cmake:2378 (message):
Call Stack (most recent call first): -- Board: adafruit_feather_stm32f405
Call Stack (most recent call first): CMake Warning at /Users/gasisk/zephyrproject/zephyr/cmake/extensions.cmake:2378 (message):
Call Stack (most recent call first): |
Beta Was this translation helpful? Give feedback.
All reactions
-
The
Try building another sample (e.g. As for the strange CMake errors, try the following (do each step and check if build works):
|
Beta Was this translation helpful? Give feedback.
All reactions
-
Did all of what you said with no luck, then also performed git pull to try and refresh what I had locally and I now see these new errors... (zephyenv) gasisk@MacBook-Pro zephyr % west build --pristine -b adafruit_feather_stm32f405 samples/basic/blinky [68/145] Linking C static library app/libapp.a |
Beta Was this translation helpful? Give feedback.
All reactions
-
Try |
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you so much! Now on to flashing the board! |
Beta Was this translation helpful? Give feedback.
All reactions
This discussion was converted from issue #39051 on October 01, 2021 17:24.
Uh oh!
There was an error while loading. Please reload this page.
-
I have attempted to follow the Adafruit instructions to get zephyr setup on macOS and on the zephyr website using GCC ARM Embedded toolchain (https://docs.zephyrproject.org/1.9.0/getting_started/getting_started.html#third-party-x-compilers) I believe there is an issue with the ZEPHYR_TOOLCHAIN_VARIANT, CROSS_COMPILE, and, TOOLCHAIN_HOME variables.
here is what the 'west build' command returns
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): /Users/gasisk/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /Users/gasisk/zephyrproject/zephyr/samples/basic/blinky
-- Zephyr version: 2.7.99 (/Users/gasisk/zephyrproject/zephyr), build: v2.7.0-rc3-187-g6cfc6fa8e1ba
-- Found west (found suitable version "0.11.1", minimum required is "0.7.1")
-- Board: adafruit_feather_stm32f405
-- Cache files will be written to: /Users/gasisk/Library/Caches/zephyr
-- Found dtc: /usr/local/bin/dtc (found suitable version "1.6.1", minimum required is "1.4.6")
-- Found toolchain: gnuarmemb (/usr/local/bin)
CMake Error at /Users/gasisk/zephyrproject/zephyr/cmake/compiler/gcc/generic.cmake:9 (message):
Zephyr was unable to find the toolchain. Is the environment misconfigured?
User-configuration:
ZEPHYR_TOOLCHAIN_VARIANT: gnuarmemb
Internal variables:
CROSS_COMPILE: /usr/local/bin/bin/arm-none-eabi-
TOOLCHAIN_HOME: /usr/local/bin
Call Stack (most recent call first):
/Users/gasisk/zephyrproject/zephyr/cmake/generic_toolchain.cmake:42 (include)
/Users/gasisk/zephyrproject/zephyr/cmake/app/boilerplate.cmake:543 (include)
/Users/gasisk/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
/Users/gasisk/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: /Users/gasisk/.virtualenvs/zephyenv/bin/cmake -DWEST_PYTHON=/Users/gasisk/.virtualenvs/zephyenv/bin/python -B/Users/gasisk/zephyrproject/zephyr/build -S/Users/gasisk/zephyrproject/zephyr/samples/basic/blinky -GNinja
It looks to me like the values of the aforementioned variables are wrong because those aren't the locations of the toolchain I downloaded via bash (Adafruit setup) or from the arm developer website (zephyr setup) I have modified my .bash_profile to no avail.
Sorry I'm new to this and only self taught so there are probably massive knowledge gaps I don't know about.
TIA to anyone who can help me
Thanks, Griffin Sisk
Beta Was this translation helpful? Give feedback.
All reactions