Cargo extension for seamlessly passing the compiled binary to AVRDUDE.
1. Installation
Install via crates.io:
cargo install cargo-avrdude
2. Usage
cargo avrdude
Invoking cargo avrdude builds the crate, passing all arguments directly to cargo build. If there are multiple binaries in your workspace, please specify one with --bin.
The arguments passed to avrdude can be specified in the Cargo.toml of the binary crate like so:
[package.metadata.cargo_avrdude]
args = ["-p", "m328p", "-c", "usbasp", "-e", "-V", "-U", "flash:w:{}"]
where any occurence of the string “{}” will be replaced by the path to the compiled binary, resulting in, for example:
avrdude -p m328p -c usbasp -e -V -U flash:w:/path/to/foo/target/release/foo.elf
3. Source
4. License
This software is licensed under the MIT license.