Last active
August 16, 2023 08:24
-
-
Save WayneKeenan/883439839c45b3592c638cedeaeecf30 to your computer and use it in GitHub Desktop.
Build Pico W examples
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
# You will need: cmake, make and an arm-none-eabi-gcc compiler on your PATH already. | |
export PROJECT_DIR=$PWD # or anywhere else. | |
export PICO_SDK_PATH=${PROJECT_DIR}/pico-sdk | |
export PICO_EXAMPLES_PATH=${PROJECT_DIR}/pico-examples | |
export PICO_EXTRAS_PATH=${PROJECT_DIR}/pico-extras | |
git clone https://github.com/raspberrypi/pico-sdk.git | |
git clone https://github.com/raspberrypi/pico-extras.git | |
git clone https://github.com/raspberrypi/pico-examples.git | |
cd pico-sdk | |
git submodule update --init | |
cmake -S${PICO_EXAMPLES_PATH} -B${PICO_EXAMPLES_PATH}/build -DPICO_BOARD=pico_w | |
make -j -C ${PICO_EXAMPLES_PATH}/build | |
# Generated *.uf2 firmware files found in subfolders of ${PICO_EXAMPLES_PATH}/build/pico_w/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment