NOTE: The extension is still under development.
This is the official Visual Studio Code extension for Raspberry Pi Pico development. It provides a set of tools to help you get started with development for the Pico boards using Visual Studio Code and the official Pico SDK.
This extension is documented in section 7.2 of the Getting started with Raspberry Pi Pico PDF
Supported Platforms: Windows x64, macOS (Sonoma and newer only), Linux x64 and arm64
All requirements for macOS can be installed by running xcode-select --install
from Terminal
gcc
and clang
As of March 2024, all new Raspberry Pi OS images come with the requirements pre-installed.
On older images the requirements can be installed by running sudo apt install openocd ninja-build
gcc
and clang
This extension contributes the following settings:
raspberry-pi-pico.cmakePath
: Set custom cmake pathraspberry-pi-pico.python3Path
: Set custom python3 pathraspberry-pi-pico.ninjaPath
: Set custom ninja pathraspberry-pi-pico.gitPath
: Set custom git pathraspberry-pi-pico.cmakeAutoConfigure
: Enable/Disable cmake auto configure on project loadraspberry-pi-pico.githubToken
: Takes a GitHub personal access token (classic) with the public_repo
scope. It is used to check GitHub for available versions of the Pico SDK and other tools. Without one, the extension will use the GitHub API unauthenticated, which has a much lower rate limit causing many features to not work properly if the limit is reached. The unauthenticated rate limit is per public IP address, so this is more likely to be necessary if you share your IP address with many other users.CMakeLists.txt
like the SDK and Toolchain paths, so using them requires the user to build and configure the project through the extensionIf the extension fails to get available Pico SDK versions, it might be because of the GitHub API rate limit. You can create a personal access token (classic) with the public_repo
scope and set it in the global ("User" not "Workspace") extension settings to increase the rate limit.