- Raspberry Pi Pico SDK (latest stable release)
- FreeRTOS-LTS (v202210-LTS)
- micro-ROS module for Raspberry Pi Pico SDK (coming soon!)
-
git clone
this repositorygit clone https://github.com/tutla53/rp2040.git
-
Move to the SDK and FreeRTOS-LTS as a submodule
pico-sdk
andFreeRTOS-LTS
-
Initialize and update the submodule
git submodule update --init
⚠️ WARNINGDon't recurse git submodules -
Setup a
CMakeLists.txt
in the project directory like:cmake_minimum_required(VERSION 3.13) # initialize pico-sdk from submodule # note: this must happen before project() set(PICO_SOURCE ../pico-sdk) include(${PICO_SOURCE}/pico_sdk_init.cmake) project(my_project) # initialize the Raspberry Pi Pico SDK pico_sdk_init() # rest of your project
-
Go to the project directory, create the build folder, and compile the software:
cd {project_directory} mkdir build cd build cmake .. make -j4