Building a Raspberry Pi Pico development environment under Windows
[Copy link]
This is what I did before. I bought one myself, and then I applied for another one and won it. But now I have two different boards I applied for. I feel like I have to put this Pico board aside, so I will transfer what I wrote before.
Building a Raspberry Pi Pico development environment under Windows
Installing the toolchain on Microsoft Windows is a little different than other platforms. However, once installed, building code for the RP2040 is somewhat similar.
Prepare
ARM GCC compiler exe fileCMake
downloadmsi fileBuild
Tools for Visual Studio 2019Python
3 downloadexe (Windows installer)
Git downloadGit for Windows downloads
Download the executable installers for these five packages, and then install all five packages on Windows
Installing the ARM GCC Compiler
During installation, when prompted, check the box to request the path to the ARM compiler as an environment variable in the Windows shell.
Install CMake
During the installation process, the installer will prompt you to add CMake to the system path for all users.
Check ①
Install Visual Studio 2019
When prompted by the Visual Studio Installer's build tools, just install the C++ build tools
Install Python 3
During the installation process, add Python 3.7 to the system path for all users when prompted by the installer.
Also, when installing Python
, select Customize installation, click Optional Features, and then select Install for all users under Advanced Features. You should also disable the maximum path length when prompted at the end of the Python installation.
Install Git
When installing Git, you should make sure to change the default editor from vim, as shown below.
Get Pico SDK and examples
Create a folder, right-click it and select Git bash Here.
Enter the following in the command box:
git clone -b master https://github.com/raspberrypi/pico-sdk.git
cd pico-sdk
\pico-sdk> git submodule update --init
pico-sdk> cd ..
git clone -b master https://github.com/raspberrypi/pico-examples.git
Open the pico-sdk folder and proceed to the next step (this step takes a long time)
Installation routine
Reference: getting-started-with-pico
Chapter 8.2 Building on MS Windows
|