windows:dev:pipicowsl
✘ Установка Pi Pico SDK (WSL2)
Начало работы
export PICO_SDK_ROOT=/mnt/c/Dev/WSL/RP2040 echo $PICO_SDK_ROOT cd $PICO_SDK_ROOT wget -q https://cdn-learn.adafruit.com/assets/assets/000/099/419/original/flash_nuke.uf2
git clone --recurse-submodules https://github.com/raspberrypi/pico-sdk $PICO_SDK_ROOT/pico-sdk git clone --recurse-submodules https://github.com/raspberrypi/pico-examples $PICO_SDK_ROOT/pico-examples git clone --recurse-submodules https://github.com/raspberrypi/pico-extras $PICO_SDK_ROOT/pico-extras git clone --recurse-submodules https://github.com/raspberrypi/pico-playground $PICO_SDK_ROOT/pico-playground
echo export PICO_SDK_PATH=$PICO_SDK_ROOT/pico-sdk >> ~/.bashrc echo export PICO_EXAMPLES_PATH=$PICO_SDK_ROOT/pico-examples >> ~/.bashrc echo export PICO_EXTRAS_PATH=$PICO_SDK_ROOT/pico-extras >> ~/.bashrc echo export PICO_PLAYGROUND_PATH=$PICO_SDK_ROOT/pico-playground >> ~/.bashrc
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential -y reboot
Использование SDK
cd $PICO_EXAMPLES_PATH rm -rf build mkdir build && cd build cmake .. #cmake .. -DPICO_BOARD=waveshare_rp2040_zero #cmake .. -DPICO_BOARD=pico_w -DWIFI_SSID="SSID" -DWIFI_PASSWORD="PASS" ## список плат: https://github.com/raspberrypi/pico-sdk/tree/master/src/boards/include/boards cd blink && make -j$(nproc)
Обновление SDK
cd pico-sdk git pull git submodule update
windows/dev/pipicowsl.txt · Последнее изменение: 2024.03.28 00:48:37 — admin