Open source version of the STMicroelectronics STLINK Tools
 
 
 
 
 
Go to file
Oleksiy Slyshyk 07ec1998c5 Merge branch 'develop' of https://github.com/texane/stlink into develop 2020-04-22 13:11:53 +03:00
.github/ISSUE_TEMPLATE Merge pull request #908 from chenguokai/master 2020-04-06 13:40:52 +02:00
cmake Fixed compilation errors 2020-04-21 14:49:25 +02:00
debian Reconfigured cmake packaging 2020-04-18 16:45:05 +02:00
doc Merge pull request #942 from Glaeqen/glaeqen-msvc-guide 2020-04-22 11:56:36 +02:00
etc update udev rules for stlinkv2-1 2020-03-31 15:26:27 +02:00
flashloaders
include stlink.h: document a bit flash types. 2020-04-20 15:24:11 +02:00
scripts Deprecated old appveyor-mingw script 2020-04-08 00:12:36 +02:00
src Merge pull request #941 from grevaillot/to_merge/option2 2020-04-22 11:47:29 +02:00
stlinkv1_macosx_driver Resolved conflicts with develop branch. 2020-02-24 23:11:51 +01:00
tests Merge pull request #938 from chenguokai/issue937 2020-04-20 11:09:21 +02:00
.gitignore General Project Update 2020-04-10 23:38:17 +02:00
.travis.sh Partial project restructuring 2020-04-16 21:59:29 +02:00
.travis.yml General Project Update 2020-04-17 18:13:23 +02:00
.version compare git version with .version 2020-03-01 22:39:43 +02:00
CHANGELOG.md Updated CHANGELOG.md 2020-04-21 15:55:39 +02:00
CMakeLists.txt Fixed compilation errors 2020-04-21 14:49:25 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-02-20 00:24:18 +01:00
LICENSE.md Project cleanup 2020-04-17 00:37:03 +02:00
Makefile Fixed compilation errors 2020-04-21 14:49:25 +02:00
README.md General Project Update 2020-04-19 23:39:40 +02:00
cmake_uninstall.cmake.in Whitespace cleanup 2020-04-15 16:20:17 +02:00

README.md

Open source version of the STMicroelectronics STlink Tools

BSD licensed GitHub release GitHub commits Downloads Linux Status macOS Status

Recent new features and bugfixes can be found in the Changelog of this software project.

License

The stlink library and tools are licensed under the BSD-3 License.
The source files stm32l0x.s and stm32lx.s found in the subdirectory /flashloaders/ are licensed under the General Public License (GPL v2+).

Introduction

STLink is an open source toolset to program and debug STM32 devices and boards manufactured by STMicroelectronics. It supports several so called STLINK programmer boards (and clones thereof) which use a microcontroller chip to translate commands from USB to JTAG/SWD. There are four generations available on the market:

  • STLINK/v1 (obsolete as of 21-11-2019)
    • transport layer: SCSI passthru commands over USB
    • stand-alone programmer and present on STM32VL Discovery boards
  • STLINK/v2
    • transport layer: raw USB commands
    • stand-alone programmer and present on STM32L Discovery and Nucleo boards
  • STLINK/v2-1
    • transport layer: raw USB commands
    • present on some STM32 Nucleo boards
  • STLINK/v3
    • transport layer: raw USB commands
    • stand-alone programmer

On the user level there is no difference in handling or operation between these different revisions.

The STlink toolset includes:

  • a communication library (libstlink.a),
  • a programmer and chip information tool (st-info),
  • a flash manipulation tool (st-flash),
  • a GDB server (st-util) and
  • a GUI-Interface (stlink-gui) [optional]

Supported operating systems and hardware combinations

Currently known working combinations of programmers and targets are listed in devices_boards.md.

Supported operating systems are listed in version_support.md.

Tutorial & HOWTO

Our [tutorial.md](doc/tutorial.md may help you along with some advanced tasks and additional info.

Installation

Windows:

Please compile and install from source as described in our compiling manual.

Long awaited binaries will be available soon...

macOS:

We recommend to install from:

Alternatively one can compile and install from source as described in our compiling manual.

Linux:

We recommend to install stlink-tools from the package repository of the used distribution:

Other Operating Systems:

Installation from source (advanced users)

When there is no executable available for your platform or you need the latest (possible unstable) version you need to compile the toolset yourself. This procedure is explained in the compiling manual.

Contributing and versioning

  • The semantic versioning scheme is used. Read more at semver.org
  • Before creating a pull request, please ALWAYS open a new issue for the discussion of the intended new features. Bugfixes don't require a discussion via a ticket-issue. However they should always be described in a few words as soon as they appear to help others as well.
  • Contributors and/or maintainers may submit comments or request changes to patch-proposals and/or pull-requests.
  • ATTENTION: NEVER EVER use the '#' character to count-up single points within a listing as '#' is exclusively reserved for referencing github issues and pull-requests. Otherwise you accidentally introduce false cross references within the project.
  • Please start new forks from the develop branch if possible as pull requests will go into this branch as well.

Current state of the project

Known missing features

Some features are currently missing from the stlink-org/stlink toolset. Here we would appreciate any help and would love to welcome new contributors who want to get involved:

  • Instrumentation Trace Macro (ITM) Cell (#136)
  • OTP & EEPROM area programming (#202, #333, #686)
  • Protection bits area reading (#346)
  • Writing external memory connected to an STM32 controller (e.g Quad SPI NOR flash) (#412)
  • MCU hotplug (#449)
  • Writing options bytes (region) (#458)
  • Support for STLINKv3 programmer (#820)