• 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: Screen Raspberry Pi 5 5V5A Power ESP32 C3 Raspberry Pi CM5 Mini Base IO Board NANO B Development For Compute Module 5 CAN Analyzer Raspberry Pi Pico 2 RP2350 2 inch LCD Capacitive TouchScreen Development Board 240x320 Display QMI8658 6-Axis /OV5640 Camera /SD /Battery Port RS232 to CAN ESP32-S3 Development Board 1.47 inch LCD Screen Display 172x320 SD-Port LVGL USB 3D Display Transparent Screen DDSM400 Direct Drive Servo Motor All-In-One Design Hub Serial -LIN Bus Motor series bus servos RP2040 JETSON NANO Raspberry Pi 5 8 inch DSI LCD Captive TouchScreen MIPI Display 1280x800 Industrial One-Body Tablet PC With 5MP Front Camera Raspberry Pi Pico 2 RP2350B RP2350-PiZero Development Board PSRAM DVI For HDMI Raspberry Pi Pico 2 RP2350B 2.41 inch AMOLED Development Board QSPI Display TouchScreen 450x600 RM690BO FT6336 QMI8658 luckfox-pico-ultra-w-WIFI-Bluetooth Raspberry Pi 3.97 inch e-Paper link (G) RYBW 800x480 For Arduino / Jetson / STM32 /ESP32 Jetson Nano 1.54inch OLED Raspberry Pi DSI display