Skip to content

UweBonnes/stlink-tool

This branch is up to date with jeanthom/stlink-tool:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Jean THOMAS
Jun 10, 2020
8cbdffe · Jun 10, 2020

History

21 Commits
Mar 17, 2018
Oct 13, 2019
Jan 20, 2018
Jan 20, 2018
Jan 20, 2018
Jan 30, 2019
Jun 10, 2020

Repository files navigation

stlink-tool

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 [options] firmware.bin
Options:
	-p	Probe the ST-Link adapter
	-h	Show help

stlink-tool has been tested under Linux and macOS. With sakana280's fork you can use it under Windows.

Compiling

Required dependencies :

  • C compiler (both clang and gcc seems to work great)
  • libusb1
  • git
git clone https://github.com/jeanthom/stlink-tool
cd stlink-tool
git submodule init
git submodule update
make

Firmware upload protocol

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 :

About

Firmware uploader for ST-Link

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.4%
  • Makefile 1.6%