Zephyr: What is it?

Zephyr: Getting Started

Windows: Use WSL 2 - Ubuntu 24

  1. Installed dependencies cmake, python3 and dtc
sudo apt install --no-install-recommends git cmake ninja-build gperf \\
  ccache dfu-util device-tree-compiler wget \\
  python3-dev python3-pip python3-setuptools python3-tk python3-wheel xz-utils file \\
  make gcc gcc-multilib g++-multilib libsdl2-dev libmagic1
  1. Create a Zephyr workspace
cd ~
mkdir finch
cd finch
  1. Create a virtual environment and install west
python3 -m venv .venv
source .venv/bin/activate

pip3 install west
  1. Install the Zephyr SDK
west sdk install -b ~/
  1. Export Zephyr cmake package and install Python dependencies
west zephyr-export
west packages pip --install
  1. Initialize the workspace
west init -m <https://github.com/utat-ss/finch-flight-software> .
  1. Source environment variables
source ../zephyr/zephyr-env.sh
FINCH_FLIGHT_SOFTWARE_ROOT="~/finch"
  1. Test the installation process worked by building the Blinky sample for OBC
cd finch-flight-software
west build -p -b obc ../zephyr/samples/basic/blinky -- -DBOARD_ROOT=$FINCH_FLIGHT_SOFTWARE_ROOT