for "Query here"
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
根据网络选择下载源,gitee是github源的镜像,通常情况下,您应该从gitee拉取。
从gitee拉取
git clone https://gitee.com/embeddedboys/pico-sdk $HOME/pico-sdk
从github拉取
git clone https://github.com/raspberrypi/pico-sdk/ $HOME/pico-sdk
cd ~/pico-sdk git submodule update --init
对于bash
echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.bashrc source ~/.bashrc
对于zsh
echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.zshrc source ~/.zshrc