跳转至

安装依赖

部署 pico-sdk

1. 安装前置依赖

安装前置依赖
sudo apt install cmake ninja-build gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib

2. 下载 pico-sdk 源码

国内用户

git clone https://gitee.com/embeddedboys/pico-sdk $HOME/pico-sdk

国外用户

git clone https://github.com/raspberrypi/pico-sdk/ $HOME/pico-sdk


3. 拉取 pico-sdk 子仓库代码

cd ~/pico-sdk
git submodule update --init

4. 配置环境变量

对于bash

echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.bashrc
source ~/.bashrc

对于zsh

echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.zshrc
source ~/.zshrc