A simple sample project for Raspberry Pi Pico (2 & W) boards.
Scripts have been tested only on Ubuntu.
- Install CMake (at least version 3.13), Python 3, a native compiler, and a GCC cross compiler
sudo apt install cmake python3 build-essential gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
- Clone this repository and submodules:
$ git clone --recurse-submodules https://github.com/Crem2y/pico-console.git
- Launch the build script:
./pico_build.sh
-
Press the reset button twice to enter bootloader mode.
-
Upload the generated
.uf2file to your board. -
(Optional) Launch the clean script to remove build artifacts:
./pico_clean.sh
This project provides a structure to add libraries.
It leaves only the folder without any libraries, so it's ideal as a base for simple projects.
This project is for the Pico W board. The built-in LED is attached to the wireless module, not the RP2040, so it’s made separately for this case.
This project is for RP2350. It might be useful to enable building both in the future, depending on the options.
PIO functionality requires assembling the .pio file, so I added it with a few changes to CMakeLists.txt.
Copy lib_test from the lib directory, rename it to the desired library name, and rename the *.hpp, *.cpp files accordingly.
Then, modify CMakeLists.txt in the lib directory to add the library.
Generates a flashable binary in .uf2 format (named after the project folder).
Deletes the build folder inside the project folder.
MIT license