Skip to content

Getting Started with PEROVSAT Flight Software

Updated: 9/29/26

This tutorial will guide you through setting up the PEROVSAT Zephyr workspace, and running the flight software

Prerequisites

  • Git (command line utility)
  • A Unix-like shell (macOS, Linux, or WSL on Windows)

Setup

Note

All commands shown here are for Unix shell systems. This will not work in Windows powershell/command line

1. Clone the application repository

git clone git@github.com:PEROVSAT/perovsat-app.git
cd perovsat-app

2. Run setup script

./setup.sh

GitHub Permissions

You can safely ignore any errors to do with lacking access to a GitHub repo. Some drivers that the script clones are private, and require specific access. If you require access, please reach out to an admin of the PEROVSAT GitHub organization

If you encounter any errors outside of GitHub permissions, or encounter later errors that say you're missing some package, please let somebody know so we can add them to the setup script or fix issues with it.

After running this script, the directory that perovsat-app was in will have been renamed to perovsat-workspace, and will contain perovsat-app. Move back into the application code:

cd perovsat-app

3. DBuild Configuration

Run configuration is done by modifying the dbuild.yml file.

For running without any hardware we'll use the following configuration: - Drivers in "public-mock" mode - Flash in "virtual" mode - Console as "off"

4. Enter into virtual environment

Nearly everything that needs to be run in the PEROVSAT project uses the same virtual environment. It's in perovsat-workspace/.venv. You can activate it using source

For example, from the perovsat-app directory (which you should now be in, use pwd to check), you can run

source ../.venv/bin/activate

5. Build and Run

We use the custom dbuild command to compile our code. Usually, building and running are separate steps, but since this tutorial uses a virtual QEMU device, they are done both at once using the -t run flag

west dbuild -b mps2/an521/cpu0 -t run

Use control+c to stop the program

Next steps