Skip to content

Instantly share code, notes, and snippets.

@todbot
Created November 27, 2024 20:22
Show Gist options
  • Save todbot/d77227c43f9326e73c394e64c4ef7735 to your computer and use it in GitHub Desktop.
Save todbot/d77227c43f9326e73c394e64c4ef7735 to your computer and use it in GitHub Desktop.
# Pico-SDK setup and compile for Pico W as of 2024 Nov
# Pico-SDK setup and compile as of 2024 Nov
git clone https://github.com/raspberrypi/pico-sdk/
git clone https://github.com/raspberrypi/pico-examples
# set up the sdk
cd pico-sdk
export PICO_SDK_PATH=`pwd`
git submodule update --init
# set up examples to build for Pico W
cd ../pico-examples
mkdir build
cd build
cmake -DPICO_BOARD=pico_w ..
# build an example
cd blink
make
# copy resulting UF2 to RPI-RP2 file (MacOS)
cp blink.uf2 /Volumes/RPI-RP2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment