These assume a vanilla ARM64 Mac running Sonoma, with Xcode or at least its command line tools, without Homebrew.
-
Build and install xz from source (macOS doesn't come with it, but macOS tar WILL use it to extract .tar.xz if present)
-
Build and install cmake from source
-
Download a prebuilt gcc-arm-none-eabi from arm (also satisfies newlib dep) and extract it in ~/Downloads/
curl -LO https://developer.arm.com/-/media/Files/downloads/gnu/13.3.rel1/binrel/arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi.tar.xz tar Jxf arm-gnu-toolchain-13.3.rel1-aarch64-arm-none-eabi.tar.xz
-
git clone pico-sdk, also in ~/Downloads/
mkdir -p build && cd build && PICO_SDK_PATH=~/Downloads/pico-sdk/ PICO_TOOLCHAIN_PATH=~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi/bin cmake .. -DPICO_BOARD=pico2 && cd ..
make -C build -j4
- Hold down BOOTSEL while plugging into USB
cp build/blink.uf2 /Volumes/RP2350