grupacosmo / cansat

Bare-metal software for the sounding rocket payload.
13 stars 3 forks source link

CanSat

Bare-metal software for the sounding rocket payload.

Getting Started

API Reference

Prerequisites

xtask

cargo-xtask is a way of extending cargo with user-defined workflows.

Run the following commands for a quick rundown:

cargo xtask --help

cargo xtask embed --help

All workflows are implemented in the xtask/ directory.

Build

cargo xtask build

Run

# Runs the default binary crate (cansat-stm32f4)
# The default can be overriden with XTASK_EMBED_DEFAULT env variable in .cargo/config.toml
cargo xtask embed

# You can also specify the crate to run manually
cargo xtask embed -p cansat-stm32f4

Log filters

You can specify log levels using DEFMT_LOG environment variable.

Bash

DEFMT_LOG=debug cargo xtask embed

Powershell

$env:DEFMT_LOG="debug"; cargo xtask embed

See https://defmt.ferrous-systems.com/filtering.html for details.