cargo-flash

Basics

cargo-flash is a cargo extension and drop in replacement for cargo run.

We recommend you install it with

cargo install cargo-flash

You can use cargo-flash just like 'cargo run', but instead of running on the host, cargo-flash will download your binary to the target and run.

Here are the basics

# Installing cargo flash is simple:
cargo install cargo-flash

# In your cargo project directory, call
cargo flash --release --chip <chip_name>

# Don't know if your target is supported
# by cargo flash and what it's name is?
cargo flash --list-chips

# You can run your examples as usual with
cargo flash --example <your_example>

# If you like GDB for debugging,
# you can open a GDB server after downloading
cargo flash --gdb

Any config flags that are accepted by 'cargo run' are accepted by cargo-flash too. If not, hit us with an issue.

Happy coding!