• 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: RS485 Bus Raspberry Pi ESP32-S3 Development Board 4 inch LCD TouchScreen Display 480x480 RS485 /SHT20 /Relay For Arduino LVGL 86 TVbox ESP32 C3 Voice Robot Mini Development Board AI DeepSeek Toy Doll Core 1.28 inch 1.54inch LCD ESP32 S3 Development Board 1.5 inch Round Rotary OLED TouchScreen Smart Knob Display 1.5inch Display 466x466 LVGL for Arduino X1202 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ) 4-Ports ISX031C GMSL Camera H100 Image Sensor IP67 protection rating For Jetson Orin And MAX9296 GMSL camera Raspberry Pi IR Thermal Imagi USB to UART AI Machine Vision Kit OAK-D-POE JPEG Encoder 12MP IP67 Waterproof 4TOPS OpenCV Camera Raspberry Pi UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe Pi5 Case Raspberry Pi 21.5 inch Type C/HDMI Display Screen 1920x1080 Computer PC Phone Xbox/PS4/Switch DeepSeek AI Voice Chat ESP32 S3 Development Board 1.85 inch Round LCD 1.85inch Display QMI8658 /MIC /SD /MP3 Audio LVGL For Arduino CV1800B MK20 Computer AI Deepseek Mechanical Voice Keyboard Linux 20x0.85inch LCD Screen Customize keys + 2.8 inch Secondary Display ESP32 S3 LCD Camera Development Board 2 inch Display QMI8658 Sensor / Battery Port LVGL/HMI For Arduino Raspberry Pi 5 Active Cooler Raspberry Pi X1004