Before getting started, make sure you have a proper Zephyr development environment. You can follow the official Zephyr Getting Started Guide.
The first step is to initialize the workspace folder (my-workspace
) where
the environ-tracker
and all Zephyr modules will be cloned. You can do
that by running:
# initialize my-workspace for the environ-tracker (main branch)
west init -m https://github.com/Hellymaw/environ-tracker --mr main my-workspace
# update Zephyr modules
cd my-workspace
west update
Secondly nanopb and its dependencies needs to be installed. This can be done by running:
# install protoc
sudo apt install protobuf-compiler
Note that protoc
must be version 3.19.0 or higher.
The application can be built by running:
west build -s app
Note that environ-tracker
has setup the BOARD
and SHIELD
internally via CMake
directives. The environ-tracker-v1
board found in this
repository is used.
west flash