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:
bash
cargo install cargo-dfu
You can use it like cargo build or cargo-flash with the option of giving the vid and pid:
bash
cargo dfu <args> --vid <vid> --pid <pid>
bash
cargo dfu
bash
cargo dfu --vid 0x483 --pid 0xdf11
feel free to open a PR to add chips to this