• sales

    +86-0755-88291180

Raspberry Pi Pico RP2040 Configure C Environment Windows and Raspberry Pi

Method 1 Raspberry Pi platform

Installation the compilation environment 

sudo apt-get install cmake --fix-missing

sudo apt-get install gcc-arm-none-eabi


SDK download

git clone -b master https://github.com/raspberrypi/pico-sdk.git

cd pico-sdk

git submodule update --init --recursive


The program needs to point to the SDK path

export PICO_SDK_PATH=../../pico-sdk 

(Change to your true path, Now you not need do this code , when you make program, you need this code )

Method 2 Window platform

1】Install the compilation environment.

MingW

arm-gnu-toolchain

Git

cmake

download these tools from the official website. During the installation process, make sure to add the bin directory to the PATH environment variable.


2SDK download

To obtain the Raspberry Pi Pico SDK and examples from GitHub

3】camke

To add the pico sdk file path to the environment variables:



Open the CMakeLists.txt file in the pico-examples folder, and add the PICO_SDK_PATH by

setting the path to the pico-sdk.




Create a new folder named "build" and navigate into it. Then, within the "build" folder, enter the "cmd" directory.

Then, enter the following command in the command line:cmake -G "MinGW Makefiles" ..

Next, execute the compilation command: make -j4




After that, the .uf2 file generated in the build folder can be transferred to the Pico for execution.


TAG: Raspberry Pi 5 DSI User Guide Programmable Magnetic Encoder Raspberry Pi 5 Audio Card Industrial Modbus RS485 RTU 8-ch Magnetic Latching Relay Module (C) With Digital Input PI5 Case X1008 Raspberry Pi 5 PCIe to 2.5" 3.5" SATA HDD/SSD Dual Double-SATA (NOT BOOT From SATA/SSD IPS Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N Milk V Duo Milk V Duo IO Board Raspberry Pi USB Camera 5MP OS05A10 Distortion-Free USB 2.0 For Jeston RDK X1007 Raspberry Pi 5 PCIe to Dual 2.5" SATA HDD/SSD Double-SATA (NOT BOOT From SATA/SSD Capacitive Touchscreen 4.2 inch e-Paper Display G Red/Yellow/Black/White 4.2inch E-link Screen For Arduino /Raspberry Pi /Jetson Nano /STM32 Jetson RTL8822CE 5GHz WiFi Wireless Bluetooth5 Card NGFF-M.2 RTL8822CE-CG Core SpotPear Raspberry Pi 5 Argon-NEO-M.2-NVME-PCIE-Expansion-Board Only For Argon NEO 5 Case (Not include) Metal Case SpotPear Arduino MLX90640