SDK环境部署

RaspberryPi Pico

部署 Pico-SDK

  1. 安装前置依赖
1sudo apt install cmake ninja-build gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
  1. 下载 Pico-SDK 源码
1git clone https://gitee.com/embeddedboys/pico-sdk $HOME/pico-sdk
  1. 拉取 Pico-SDK 子仓库代码
1cd ~/pico-sdk
2
3git submodule update --init
  1. 配置环境变量
1echo "export PICO_SDK_PATH=$HOME/pico-sdk" >> ~/.bashrc
2
3source ~/.bashrc

对于zsh

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

获取工程

1git clone https://gitee.com/embeddedboys/pico_dm_yt350s006_freertos

Micropyton (开发中)

编译及配置

1cd pico_dm_yt350s006_freertos
2
3mkdir -p build
4cd build
5cmake .. -G Ninja
6ninja

Luckfox Pico

参考SDK 环境部署(PC端)搭建环境