Skip to content
/ pico-template Public template

A simple ready to go template project for building C/C++ software for the Raspberry Pi Pico

Notifications You must be signed in to change notification settings

modmuss50/pico-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico Template

A simple C/C++ template for the Raspberry Pi pico using cmake.

CLion works great as an IDE.

Was made with help from the Getting Started guide

Requirements

MacOS

brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc cmake ninja

Debian/Ubuntu

sudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential ninja-build

Windows

Windows Subsystem for Linux (WSL) can be used to run Ubuntu.

Setup

Updates the pico-sdk sub-module, this may take a few minutes as its quite large.

git submodule update --init --recursive

Build

Creates a new build directory and uses ninja to build the .uf2 file.

mkdir build
cd build
cmake -G Ninja ..
ninja

Copy the .uf2 file from the build directory onto the pico to run

Serial console (MacOS)

ls /dev/tty.*
screen /dev/tty.usbmodem0000000000001

About

A simple ready to go template project for building C/C++ software for the Raspberry Pi Pico

Topics

Resources

Stars

Watchers

Forks