Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 988 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 988 Bytes

RP2040 Base Template

This is a basic project template using the Pico SDK for project based on the RP2040 Cortex M0+ microcontroller from Raspberry Pi.

Project structure

  • The C/C++ sources are located in the srcfolder
  • PIO sources are located in the piosrc folder and all files ending with *.pio will be automatically compiled
  • The includes are in include
  • Libraries and hardware drivers go into the lib folder and follow the same src/piosrc/include scheme

Project settings

The project settings, definitions of pins, FreeRTOS settings (wether to use or not) can be set in ìnclude/project_config.h. There are some extra settings for FreeRTOS in the FreeRTOSConfig.h, but I wouldn't recommend touching them unless you know what you are doing.

Building

In order to build the *.uf2 file, which then can be transferred to the RP2040 by copying it to the virtual disk:

mkdir build
cd build
cmake ..

The file will be called main.uf2.