Crates.io | stlink-tool-rs |
lib.rs | stlink-tool-rs |
version | 0.2.0 |
source | src |
created_at | 2023-03-11 08:02:59.853074 |
updated_at | 2023-03-11 08:14:36.705063 |
description | A tool to flash chinese ST-link dongles |
homepage | https://github.com/MadsAndreasen/stlink-tool-rs |
repository | |
max_upload_size | |
id | 807084 |
size | 39,324 |
libusb tool for flashing chinese ST-Link dongles. Please note that similarly to ST's updater, the uploaded firmware won't replace the bootloader (meaning that you should be able to reflash the original afterwards using ST's firmware update utility).
Usage: stlink-tool-rs [options] firmware.bin
Options:
-p Probe the ST-Link adapter
-h Show help
stlink-tool-rs has been tested under Linux.
Prerequisite - Rust toolchain.
cargo build
ST's firmware upload protocol is USB's DFU protocol with some twists. Every DFU command is issued with the 0xF3 prefix, and the command set does not exactly match USB's.
Some documentation :
This is a reimplementation in rust of https://github.com/UweBonnes/stlink-tool/tree/stlinkv21 Mainly for the purpose of learning some Rust, with a real project.