- 1. MicroPython configuration
- 2. C++ configuration (Not working...)
- 3. C++ configuration using PlateformIO and arduino libraries
- Go to rp2040 documentation site and download U2F file
- Connect the pico to your computer while pressing on
BOOTSEL
button - Copy the U2F file on the Pico's filesystem
- Go to Python website and download the last version of Python
- Install the downloaded file on your machine. Make sure to add python to PATH
- Open VS Code and go to extension tab
- Search for
pico
and install Pico-Go extensionchriswood.pico-go
- Search for
python
and install Python extensionms-python.python
- In a new VS Code project, enter the command
Pico-Go > Configure Project
- Connect your RPI Pico with USB. The terminal will tell you on wich COM port your connected
- You can create a new
.py
file and write code - There is buttons on the bottom of the window to run or upload code and connect the board to VS Code
A project example can be found in the MicroPython-example branch of this repository.
Make sure to have python installed (Step 1.2. Install Python on your machine) A video can be found on YouTube
- Go to ARM website and download the last version
- Install the compiler. Make sure to check
Add path to environment variable
- Go to cMake website, download and install cMake for your machine
- During the installation, chech
Add CMake to the system PATH for all users
- Go to Microsoft website and scroll to "Build Tools for Visual Studio 2019" and click on Download
- Run the file and select C++ build tools and click install
- Go to the GitHub repository and download the repository
- Go to the GitHub examples repository and download the repository
- Put these repositories in a folder on your machine, for example
C:\Pico
- Open a Developer Command Prompt, go to your folder et add pico-skd to PATH
cd C:\Pico
setx PICO_SDK_PATH "C:\Pico\pico-sdk"
- Open VS Code and go to extension tab
- Search for
cortex
and install Cortex-Debug extensionmarus25.cortex-debug
- Search for
cmake
and install CMake Tools extensionms-vscode.cmake-tools
- Search for
c++
and install C/C++ extensionms-vscode.cpptools
- Go to CMake tools configuration extension settings
- Scroll to Cmake: Configure environment
- Click on Add Item and add
PICO_SDK_PATH
and the value is the pico-sdk folder's pathC:\Pico\pico-sdk
- Scroll to Cmake: Generator
- Type
NMake Makefiles
- In a new VS Code project, enter the command
CMake: Quick Start
, then selectExecutable
and the correct kitGCC for arm-none-eabi
, then enter a project name - Click the build button on the bottom of the window
A project example can be found in the c-example branch of this repository.
Make sure to have python installed (Step 1.2. Install Python on your machine)
- Open VS Code and go to extension tab
- Search for
PlatformIO
and install PlatformIO IDE extensionplatformio.platformio-ide
- Go to Zadig website and download Zadig
- Open Zadig and select
RP2 Boot (Interface 1)
and theWinUSB
driver - Click on Install Driver
- Open the PIO Home window and click on
New Project
- Choose a name for your project and select your board and the Arduino framework
- Before uploading a project for the first time. Add 2 lines to
platformio.ini
file On Windows use the drive letter when the pico is connected in BOOTSEL mode On MacOS useVolumes/RPI-RP2
On Linux use the path where the volume is mounted
upload_port = E:\
upload_protocol = picotool
- To buil or upload your project, the tasks can be found in the PlatformIO plug-in
A project example can be found in the C-PlatformIO-example branch of this repository.