This project is build as a freestanding Zephyr app, with some additional requirements due to source generation.
- Follow the Zephyr Getting Started instructions for your host OS to obtain the Zephyr repo, submodules and the SDK
- Create a new Python virtual environment for the project and install the required packages like so:
python -m venv python_venv
source python_venv/bin/activate
pip install -r requirements.txt
Note: Sourcing the virtual environment will not be necessary after the first time as CMake will use the virtual environment python binary.
- Source both the Zephyr python virtual environment and the SDK export script
- Use
west
or CMake to build for one of the supported boards:
west build -b blackpill_f411ce
The efc
project uses code formatting rules described in .clang-format
.
To ensure automatic code formatting, use pre-commit and install hooks:
pre-commit install