Crates.io | cargo-dfu |
lib.rs | cargo-dfu |
version | 0.1.2 |
source | src |
created_at | 2021-11-14 12:24:49.362776 |
updated_at | 2022-10-25 22:07:47.000415 |
description | cargo extension for flashing embedded rust programs via dfu |
homepage | https://github.com/dfu-rs/cargo-dfu |
repository | https://github.com/dfu-rs/cargo-dfu.git |
max_upload_size | |
id | 481706 |
size | 30,483 |
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
You can install this utility with cargo:
cargo install cargo-dfu
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>
cargo dfu
cargo dfu --chip stm32
cargo dfu --vid 0x483 --pid 0xdf11
feel free to open a PR to add chips to this
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