cargo extension for flashing embedded rust programs via dfu based on jacobrosenthals cargo-hf2
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
Roman Kretschmer aed0c2fb0b
Merge pull request #6 from tversteeg/custom-target
4 years ago
src Support custom target files 4 years ago
.gitignore Initial Commit 4 years ago
Cargo.lock Bump up Version to `0.1.1` 4 years ago
Cargo.toml Bump up Version to `0.1.1` 4 years ago
LICENSE.md Initial Commit 4 years ago
Readme.md Update README 4 years ago
udev.rules add udev rules 4 years ago

Readme.md

cargo-dfu

This crate provides a cargo subcommand to flash ELF binaries via dfu Most STM chips will probably work with this, although you might need to add the vid and pid to the vendor map

Installation

You can install this utility with cargo:

cargo install cargo-dfu

Usage

You can use it like cargo build or cargo-flash with the option of giving the vid and pid:

cargo dfu <args> --vid <vid> --pid <pid>

Examples

flash the debug version of the current crate

cargo dfu 

specifying the chip

cargo dfu --chip stm32

specifying the vid and pid

cargo dfu --vid 0x483 --pid 0xdf11

Add chip definitions

feel free to open a PR to add chips to this

Notes

some chips like the gd32vf103 need additional udev rules therefor you need to copy the rules from the udev file into /etc/udev/rules.d/

sudo cp udev.rules /etc/udev/rules.d/cargo-dfu.rules

Roadmap

  • check if multiple chips are connected