From cfabc7c771759f8529b3ff362e47cc72cd495c6a Mon Sep 17 00:00:00 2001 From: Wayne Keenan Date: Sun, 11 Apr 2021 13:15:13 +0100 Subject: [PATCH] Update MicroPython build step and reorder it to after toolchain step. RaspberryPi have updated the build instructions, e.g. the git repo is no longer valid. --- setting-up-the-pico-sdk.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/setting-up-the-pico-sdk.md b/setting-up-the-pico-sdk.md index 3ea3e52c..0ad2b1b5 100644 --- a/setting-up-the-pico-sdk.md +++ b/setting-up-the-pico-sdk.md @@ -25,18 +25,7 @@ git clone -b master https://github.com/raspberrypi/pico-examples.git ``` -**Step 3.** Install the MicroPython port (optional): - -```bash -git clone -b pico https://github.com/raspberrypi/micropython.git -cd micropython -git submodule update --init -- lib/pico-sdk -cd lib/pico-sdk -git submodule update --init -cd ../../.. -``` - -**Step 4.** Install the toolchain needed to build Pico projects. +**Step 3.** Install the toolchain needed to build Pico projects. **Debian Linux** @@ -58,6 +47,17 @@ brew install arm-none-eabi-gcc xcode-select --install ``` +**Step 4.** Install the MicroPython port (optional): + +```bash +git clone -b master https://github.com/micropython/micropython.git +cd micropython +git submodule update --init -- lib/pico-sdk lib/tinyusb +make -C mpy-cross +cd ports/rp2 +make +cd ../../../ +``` **Step 5.** Install the Pimoroni Pico libraries: ```bash