Pico setup for Windows
This project aims to create an easy-to-use installer to get started on Windows (using the C/C++ SDK) with the Raspberry Pi Pico microcontroller board, and possibly other RP2040-based boards as well. It is inspired by, and is roughly equivalent to, the pico-setup project for Linux systems.
The installers automate the prerequisite installation on Windows, as explained in the official Getting started with Raspberry Pi Pico guide. In addition, the installer offers to clone and build the Raspberry Pi Pico SDK for C/C++, along with some related repos which might be useful.
Documentation for end-users is in the ReadMe.txt file that is copied by the installer.
The installers attempt to install the required tools silently, without user intervention. The installers are configured with the recommended options from the official guide. For advanced users who wish to configure the software themselves, it might be better to download and install the software manually, or using a package manager.
- GNU Arm Embedded Toolchain - the official guide refers to this as "ARM GCC Compiler"
- Build Tools for Visual Studio 2019
- Python 3.9
- Git for Windows
- Visual Studio Code
- OpenOCD with picoprobe support
The installers are built with NSIS 3. The NSIS script is generated by build.ps1 when provided with a JSON configuration file. The build script automatically downloads a local copy of NSIS to use for the build.
Configuration files for x86 (32-bit) and x64 (64-bit) builds are provided.
Compiling OpenOCD requires an installation of MSYS2. The build script automatically downloads and installs a local copy of MSYS2. You can specify a path to an existing copy of MSYS2 using the
-MSYS2Path option. The build script will install a copy of MSYS2 at this path if it doesn't find an existing copy.
It is highly recommended to use a dedicated copy of MSYS2 for this build.
.\build.ps1 .\x64.json -MSYS2Path ~\Downloads\msys64 .\build.ps1 .\x86.json -MSYS2Path ~\Downloads\msys64
The built installers will be saved to the