All Projects → jeanthom → stlink-tool

jeanthom / stlink-tool

Licence: other
Firmware uploader for ST-Link

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to stlink-tool

host lib
This project contains python examples for the Kneron USB dongle
Stars: ✭ 15 (-69.39%)
Mutual labels:  libusb
Libwdi
Windows Driver Installer library for USB devices
Stars: ✭ 928 (+1793.88%)
Mutual labels:  libusb
Airspyone host
AirSpy's usemode driver and associated tools
Stars: ✭ 173 (+253.06%)
Mutual labels:  libusb
exodriver
The official LabJack Linux and Mac OS X USB driver
Stars: ✭ 45 (-8.16%)
Mutual labels:  libusb
Hidviz
A tool for in-depth analysis of USB HID devices communication
Stars: ✭ 505 (+930.61%)
Mutual labels:  libusb
Usb4java Javax
javax.usb extension for usb4java
Stars: ✭ 47 (-4.08%)
Mutual labels:  libusb
g810-led-python
Old Linux led controller for the Logitech G810 Keyboard
Stars: ✭ 12 (-75.51%)
Mutual labels:  libusb
Usb4java
USB library for Java based on libusb
Stars: ✭ 240 (+389.8%)
Mutual labels:  libusb
Simplert
Simple Reverse Tethering utility for Android
Stars: ✭ 803 (+1538.78%)
Mutual labels:  libusb
Potatonv
Unlock bootloader of Huawei devices on Kirin 960/659
Stars: ✭ 132 (+169.39%)
Mutual labels:  libusb
ccid-utils
A USB smartcard driver including GSM SIM and EMV credit/debit card development platforms
Stars: ✭ 37 (-24.49%)
Mutual labels:  libusb
Device.net
A C# cross platform connected device framework
Stars: ✭ 347 (+608.16%)
Mutual labels:  libusb
Libcorsairrgb
⌨️ Windows library for controlling lights on Corsair RGB keyboards
Stars: ✭ 52 (+6.12%)
Mutual labels:  libusb
pearlfan
GNU/Linux kernel driver and libusb app for a Pearl's USB LED fan
Stars: ✭ 20 (-59.18%)
Mutual labels:  libusb
Usbdk
Usb Drivers Development Kit for Windows
Stars: ✭ 181 (+269.39%)
Mutual labels:  libusb
PS3Eye
Sony PS3Eye Java/Processing Library.
Stars: ✭ 16 (-67.35%)
Mutual labels:  libusb
Uhubctl
uhubctl - USB hub per-port power control
Stars: ✭ 1,036 (+2014.29%)
Mutual labels:  libusb
Qtusb
A cross-platform USB Module for Qt.
Stars: ✭ 245 (+400%)
Mutual labels:  libusb
Nitrokey App
Nitrokey's Application (Win, Linux, Mac)
Stars: ✭ 210 (+328.57%)
Mutual labels:  libusb
Moolticute
Mooltipass crossplatform daemon/tools
Stars: ✭ 82 (+67.35%)
Mutual labels:  libusb

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

Writing firmwares for ST-Link dongles

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 :

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].