• 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 CM5 Mini Base IO Board NANO A Development For Compute Module 5 ESP32-S3 AI Voice Images Chat Robot Electronic PhotoPainter Frame E-Paper Ink Screen 7.3-inch E6 Full-Color Deepseek Development Board ESP32-S3 Development Board 4 inch LCD TouchScreen Display 480x480 RS485 /SHT20 /Relay For Arduino LVGL 86 TVbox SpotPear USB to I2C electronic Tag Arducam 64MP Camera Raspberry Pi 5 PCIe to USB3 HUB Double 2.5G ETH RJ45 and M.2 NVMe SSD PI5 Expansion board HAT+ Jetson Nano 3G module Industrial RS485 Modbus RTU Relay EVAL-ADXL354CZ EVAL BOARD AV to RGB ESP32 C6 Development Board 1.43 inch AMOLED QSPI Display 1.43inch TouchScreen Dual MIC AudioI Deepseek N16R8 Raspberry Pi Pico GNSS expansion board L76K GPS Beidou (BDS) GLONASS QZSS A-GNSS For RP2040/RP2350 Industrial Grade Isolated USB TO RS232/485 (B) Serial UART Converter FT232RNL For Wall/Rail-Mount Raspberry Pi Raspberry Pi 7.5 inch e-Paper link (H) RYBW 800x480 For Arduino / Jetson Nano / STM32 Raspberry Pi 5 Camera User Guide RP2040 LoRa Raspberry Pi PICO