Project Setup

Software Requirements

The following software is required to build the project:

Windows

circle-info

This project uses Makefile, however build tools and board files are copied from an Arduinoarrow-up-right/Teensyduinoarrow-up-right installation.

circle-exclamation

Requirements to regenerate protobuf (nanopbarrow-up-right) sources:

  1. Extract zip, fe. c:\share\protoc-3.11.4

  2. Add protoc (fe., c:\share\protoc-3.11.4\bin) to PATH

Ubuntu 18.04

circle-info

This project uses Makefile, however build tools and board files are copied from an Arduinoarrow-up-right/Teensyduinoarrow-up-right installation.

Requirements to regenerate protobuf (nanopbarrow-up-right) sources:

  • apt install protobuf libprotobuf-dev python-protobuf

circle-info

To communicate with the Teensy hardware as a non-root user, install the Teensy udev rulearrow-up-right:

Fetching sources

Use git to clone the root project (TeensyFanControllerarrow-up-right).

You must initialize and pull the git sub-modules/sub-repositories:

circle-info

Use the ui_qt5 sub-directory underneath the root project directory for Management UI builds.

Setup project build environment

Change directory to the project root, and use Makefile:

circle-info

Root Make targets:

  • make alias for make setup

  • make setup alias for make clean setup-toolchain setup-libs setup-nanopb protos

  • make setup-toolchain copy toolchain and Teensy3 cores from Teensyduinoarrow-up-right into project

  • make setup-libs copy Teensyduinoarrow-up-right libraries into project

  • make setup-nanopb copy nanopbarrow-up-right into project libraries

  • make protos alias for make runtime_config_v1.pb.c

  • make runtime_config_v1.pb.c generate RuntimeConfigV1 protobuf sources

  • make clean alias for make clean-build clean-setup

  • make clean-build delete builds produced by teensy_fan_controller/Makefile

  • make clean-setup delete files produced by this Makefile

Last updated

Was this helpful?