This is a basic project template using the Pico SDK for project based on the RP2040 Cortex M0+ microcontroller from Raspberry Pi.
- The C/C++ sources are located in the
src
folder - 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
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.
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.