# Raspberry Pi Pico 2 risc-v toolchain on windows plyr0 2025-12-17 Get VSCode + plugin. Or go Linux. Seriously. Or wsl. EOF. Hard way, git, MS Visual Studio(not VSCode): As in: "Getting started with Raspberry Pi Pico-series C/C++ development with Raspberry Pi Pico-series and other Raspberry Pi microcontroller-based boards" => https://www.raspberrypi.com/documentation/microcontrollers/c_sdk.html Setup Get sdk and examples: ``` cd C:\c\pico git clone https://github.com/raspberrypi/pico-sdk.git^ --branch master cd pico-sdk git submodule update --init cd .. git clone https://github.com/raspberrypi/pico-examples.git^ --branch master ``` Get toolchain, and decrunch them into eg.: C:\c\pico => https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.2.0-2/openocd-0.12.0+dev-x64-win.zip => https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.2.0-2/pico-sdk-tools-2.2.0-x64-win.zip => https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.2.0-2/picotool-2.2.0-a4-x64-win.zip => https://github.com/raspberrypi/pico-sdk-tools/releases/download/v2.2.0-2/riscv-toolchain-15-x64-win.zip Get cmake 3.31.10, not newer: cmake-3.31.10-windows-x86_64.zip => https://cmake.org/download/ Run VS Developer Console assuming you have visual studio, not code ``` set PATH=C:\c\cmake\cmake-3.31.10-windows-x86_64\bin;^ %PATH%;^ C:\c\pico\pioasm;^ C:\c\pico\picotool;^ C:\c\pico\riscv-toolchain-15-x64-win\bin ``` I have devkitpro cmake in %PATH%, so cmake path goes before %PATH% ``` set PICO_SDK_PATH=C:\c\pico\pico-sdk ``` You can use setx/system env variables change for permanent clutter Build ``` cd c:\c\pico\pico-examples\build cmake -DPICO_PLATFORM=rp2350-riscv -DPICO_BOARD=pico2 .. cd blink nmake ``` Voi-and-la. No idea how to use amd64 windows clang or gcc. This seems to not work at all: ``` set PICO_RISCV_TOOLCHAIN_PATH=c:\c\pico\riscv-toolchain-15-x64-win\bin ``` Now, I should definitely buy a Pico. TODO: CH32V003 + WCH-LinkE <- 'E' is important here.