This guide is for Ubuntu 24.04 LTS. It also works on Ubuntu 24.04 running in WSL. This manual guide might not work on other operating systems.
sudo apt update
sudo apt upgrademkdir ~/finch
cd ~/finchNote: This is because the west manifest will populate one directory above this repository.
Using HTTPS:
git clone https://github.com/utat-ss/finch-firmware.git
cd finch-firmwareOr using SSH:
git clone git@github.com:utat-ss/finch-firmware.git
cd finch-firmwaresudo ./scripts/install_dependencies.sh./scripts/setup_python_venv.sh./scripts/setup_west_workspace.shOn this step the Zephyr SDK is installed, so it might take a while.
Every time you open a terminal to build the apps, you need to activate the virtual environment and set the Finch Flight Software environment variable.
source ../zephyr/zephyr-env.shsource ../.venv/bin/activateWe suppose that the board is available through USB.
To flash the board, run the west flash command. To select a different runner, use the -r argument. pyocd is the recommended runner.