Skip to content

Applicaiton template for Linux, Windows and RaspberryPi Pico.

License

Notifications You must be signed in to change notification settings

suikan4github/linux-windows-raspipico

Repository files navigation

Linux / Windows / Raspberry Pi Pico compatible application

This is a template project which can run on Linux, Windows and Raspberry Pi Pico.

Description

A set of CMake files template and sample C++ application which can run on Linux, Windows and Raspberry Pi Pico. This sample also allows unit test by GoogleTest.

This template application is :

  • Able to collaborate with Visual Studio CODE editor.
  • Build in GoogleTest which is downloaded automatically.
  • "src" directory for application source code.
  • "test" directory for unit tests.
  • Generate Gcov data files during test ( except Windows platform )
  • Tested:
    • Ubuntu 24.04 with gcc.
    • Ubuntu 24.04 with gcc-arm-none-eabi
  • Automatically tested by GitHub Actions.
    • Ubuntu Latest with GCC.
    • Ubuntu Latest with Clang.
    • Windows Latest with MSVC 32bit.
    • Windows Latest with MSVC 64bit.
  • Make coverage report and publish it to Coveralls.

Tested environment / Target

Ubuntu

  • Kubuntu 24.10
  • VS Code 1.94.2
  • CMake
  • g++

Windows

  • Windows 11
  • VS Code 1.94.2
  • CMake 3.28.3
  • Visual Studio Build Tools 2022 17.11.3

WSL2

  • Windows 11 / Ubuntu 24.04
  • CMake 3.15 or newer
  • g++ 13.2.0

Raspberry Pi Pico

  • Windows 11 / Ubuntu 24.04 (WSL)
  • VS Code 1.94.2
  • CMake 3.28.3
  • gcc-arm-eabi-none 13.2.1

Prerequisite

On the Ubuntu, run followings on the shell to install the essential tools.

apt-get -y update
apt-get -y install build-essential cmake ninja-build git 
apt-get -y install gcc-arm-none-eabi libnewlib-arm-none-eabi
apt-get -y install doxygen graphviz

Usage

As of 2024/Nov, Windows target is unable to configure from VS Code. Our recommendation is WSL, instead of Windows native as a development environment.

Known issues

  • As of 2024/Nov, we cannot configure this project on the VS Code for Windows.

License

This project is shared under the MIT License.

About

Applicaiton template for Linux, Windows and RaspberryPi Pico.

Resources

License

Stars

Watchers

Forks

Packages

No packages published