Pico-Get-Start-Windows
From Waveshare Wiki
Windows Environment Setting Tutorial
- This tutorial is applicable to the Raspberry Pi Pico and the RP2040 series development board developed by our company.
- The default development environment is Windows for example (the Raspberry Pi can be installed with the official installation script).
C/C++ SDK
You need to install the corresponding toolchain are:
- Arm GNU Toolchain (You need to install the corresponding version, such as Windows needs to install the file with the suffix -arm-none-eabi.exe.)
- CMake
- Visual Studio 2022
- Python 3.10
- Git
- Also, we have packaged the installation package and uploaded it to our server.
- You can click here to download the installation package.
How to Install
Arm GNU Toolchain
CMake
Python
Git
- There are many installation options for Git and the length is relatively long. Here we only point out the recommended modification parts, and the default settings for the rest of the options are recommended.
Visual Studio 2022
Get and Compile the Demo
Get SDK Demo
In the folder where you want to download the SDK, Shift + right click -> select "Open powershell here" and enter the command:
git clone -b master https://github.com/raspberrypi/pico-sdk.git cd pico-sdk git submodule update --init cd .. git clone -b master https://github.com/raspberrypi/pico-examples.git
Set the Environment and Compile
- Open your VS 2022 -> Tools -> Command Line -> Developer PowerShell.
- Set the absolute address of your pico-sdk to PICO_SDK_PATH, for example, my pico-sdk address is "D:\pico\pico-sdk".
- Jump to the folder where pico-examples is located, create a build folder and compile.
- Just wait for the compilation to complete (note that all demos are compiled here, so the compilation time is a bit long).
- The following are all instructions:
setx PICO_SDK_PATH "..\..\pico-sdk" cd pico-examples mkdir build cd build cmake -G "NMake Makefiles" .. nmake