2872 views|1 replies

33

Posts

0

Resources
The OP
 

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

insert image description here
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 ①
insert image description here

Install Visual Studio 2019

When prompted by the Visual Studio Installer's build tools, just install the C++ build tools

insert image description here

Install Python 3

During the installation process, add Python 3.7 to the system path for all users when prompted by the installer.
insert image description here
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.
insert image description here

Install Git

When installing Git, you should make sure to change the default editor from vim, as shown below.
insert image description here

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

insert image description here
Open the pico-sdk folder and proceed to the next step (this step takes a long time)
insert image description here

Installation routine
insert image description here

Reference: getting-started-with-pico
Chapter 8.2 Building on MS Windows

This post is from Innovation Lab

Latest reply

Looking forward to more follow-up   Details Published on 2021-5-7 09:16
 
 

2w

Posts

74

Resources
2
 

Looking forward to more follow-up

This post is from Innovation Lab
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
Personal signature

加油!在电子行业默默贡献自己的力量!:)

 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list