From 1e17c2aa1812583f61dd76adaa2e1dbfa650ab33 Mon Sep 17 00:00:00 2001 From: Huckies <46043032+Huckies@users.noreply.github.com> Date: Thu, 9 Jun 2022 15:20:28 +0800 Subject: [PATCH] Update setup.md --- docs/docs/development/setup.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs/development/setup.md b/docs/docs/development/setup.md index bf1bd122..015d7c08 100644 --- a/docs/docs/development/setup.md +++ b/docs/docs/development/setup.md @@ -336,7 +336,8 @@ Since the Zephyrâ„¢ SDK is not available for Windows, we recommending following Since the Zephyrâ„¢ SDK is not available for macOS, we recommending following the steps to install the GNU ARM Embedded toolchain: ``` -brew install --cask gcc-arm-embedded +brew tap armmbed/formulae +brew install arm-none-eabi-gcc ``` @@ -514,6 +515,11 @@ To load the Zephyr environment properly for just one transient shell, run the fo source zephyr/zephyr-env.sh ``` +:::info +If it goes wrong running ``west build`` on macOS, try ``export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb && export GNUARMEMB_TOOLCHAIN_PATH=/opt/homebrew/Cellar/arm-none-eabi-gcc/10.3-2021.07/gcc`` +The value of ``GNUARMEMB_TOOLCHAIN_PATH`` may differ, please refer to your own path. +::: + ##### All Shells To load the environment variables for your shell every time,