Skip to content

Commit e63368c

Browse files
authored
update windows pico sdk build instructions (#105)
Update for vs code pico sdk extension
1 parent 3e2377c commit e63368c

1 file changed

Lines changed: 18 additions & 19 deletions

File tree

development/build-environment.mdx

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,26 @@ Most of this will be parroting the above linked PDF from the Raspberry Pi Founda
2323
<Tabs groupId="operating-systems" defaultValue="Windows (Pico SDK)">
2424
<TabItem value="Windows (Pico SDK)" label="Windows (Pico SDK)" default>
2525

26-
1. Download and install [CMake](https://github.com/Kitware/CMake/releases/download/v3.27.4/cmake-3.27.4-windows-x86_64.msi).
27-
2. Install [NodeJS](https://nodejs.org/en/download)
28-
3. Install [NPM](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
29-
4. Download and install [pico-setup-windows-x64-standalone](https://github.com/raspberrypi/pico-setup-windows/releases/).
30-
5. Download and install VSCode.
31-
6. Download and install [Windows Terminal](https://github.com/microsoft/terminal/releases/tag/v1.17.11461.0).
32-
7. Open Windows Terminal.
33-
8. Download the GP2040-CE-main repository by running the following commands in the Windows Terminal. This will download the folder to `C:\Users\user\GP2040-CE`.
34-
26+
1. Download and install [NodeJS](https://nodejs.org/en/download)
27+
2. Download and install [Python 3.x](https://www.python.org/downloads/windows/)
28+
- During install, check the box **"Add python.exe to PATH"**
29+
- Run the following command to install virtualenv
3530
```console
36-
git clone https://github.com/OpenStickCommunity/GP2040-CE.git
37-
cd GP2040-CE
38-
git submodule update --init
31+
pip install virtualenv
3932
```
40-
41-
After installing the Raspberry Pi Pico SDK, you should now have a shortcut to "Pico-Visual Studio Code" (search for it using Windows Search).
42-
43-
8. Open "Pico-Visual Studio Code" via Windows search. This is a shortcut with pre-configured environment variables (this will be explained later).
44-
9. Navigate to the Extensions window by pressing `Ctrl+Shift+X`.
45-
10. Install "CMake Tools" by Microsoft.
46-
11. Open the GP2040-CE folder you downloaded earlier via "File > Open Folder."
33+
3. Download and install a git client [git for windows](https://gitforwindows.org/) or [GitHub Desktop](https://desktop.github.com/download/)
34+
4. Download and install [VS Code](https://code.visualstudio.com/Download)
35+
5. Run VS Code
36+
- Go to **Extensions**, search for and install the **"Raspberry Pi Pico"** extension
37+
- Go to **Settings** for the extension and up the **"Raspberry-pi-pico: Python3 Path"** setting to the direct path of the version you installed in Step 2
38+
6. Restart VS Code
39+
- Select **Open Folder** and navigate to the gp2040-ce path where you cloned the repository
40+
- Confirm when asked **"Do you want to import this project as a Raspberry Pi Pico project?"**
41+
- Select Pico SDK version **"v2.1.1"**
42+
- Check the box under CMake Tool **"Enable CMake-Tools extension integration"**
43+
7. Test building the project
44+
- Go to Cmake and expand **PROJECT OUTLINE**
45+
- Click **Build All Projects** and select **Pico** from the list of **Kits**
4746

4847
</TabItem>
4948
<TabItem value="Windows (Manual)" label="Windows (Manual)" default>

0 commit comments

Comments
 (0)