From b1f13df014f7c49554f1aa4ba887776a9dbb314f Mon Sep 17 00:00:00 2001 From: James Sutton <1068763+jpwsutton@users.noreply.github.com> Date: Sat, 23 Jan 2021 11:06:20 +0000 Subject: [PATCH] Adding PICO_SDK_PATH instructions as well as how to install the toolchain on macos Signed-off-by: James Sutton <1068763+jpwsutton@users.noreply.github.com> --- setting-up-the-pico-sdk.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/setting-up-the-pico-sdk.md b/setting-up-the-pico-sdk.md index 3ea08869..3ea3e52c 100644 --- a/setting-up-the-pico-sdk.md +++ b/setting-up-the-pico-sdk.md @@ -14,12 +14,17 @@ cd pico ```bash git clone -b master https://github.com/raspberrypi/pico-sdk.git + +# Set the PICO_SDK_PATH environment variable to where you just cloned the repo. +export PICO_SDK_PATH=/path/to/pico-sdk + cd pico-sdk git submodule update --init cd .. git clone -b master https://github.com/raspberrypi/pico-examples.git ``` + **Step 3.** Install the MicroPython port (optional): ```bash @@ -33,11 +38,26 @@ cd ../../.. **Step 4.** Install the toolchain needed to build Pico projects. + +**Debian Linux** ```bash sudo apt update sudo apt install cmake gcc-arm-none-eabi build-essential ``` +**macos** (Using Homebrew) +```bash +# Install cmake +brew install cmake + +# Install the arm eabi toolchain +brew tap ArmMbed/homebrew-formulae +brew install arm-none-eabi-gcc + +# The equivalent to build-essential on linux, you probably already have this. +xcode-select --install +``` + **Step 5.** Install the Pimoroni Pico libraries: ```bash