Created
November 27, 2024 20:22
-
-
Save todbot/d77227c43f9326e73c394e64c4ef7735 to your computer and use it in GitHub Desktop.
# Pico-SDK setup and compile for Pico W as of 2024 Nov
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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