Open source version of the STMicroelectronics STLINK Tools
 
 
 
 
 
Go to file
nightwalker-87 6aa08a659a
Merge pull request #969 from stlink-org/develop
Release v1.6.1
2020-06-01 00:00:20 +02:00
.github/ISSUE_TEMPLATE Update issue templates 2020-05-13 12:38:43 +02:00
cmake Updated package & install configuration 2020-05-18 15:13:36 +02:00
config Refactoring for build settings 2020-05-19 11:28:35 +02:00
doc Merge pull request #964 from stlink-org/macos_kext 2020-05-28 19:05:27 +02:00
flashloaders Minor fixes for flashloader files 2020-05-22 15:11:43 +02:00
include Added --connect-under-reset to st-flash and st-info 2020-05-23 16:01:12 -04:00
src Added --connect-under-reset to st-flash and st-info 2020-05-23 16:01:12 -04:00
stlinkv1_macos_driver Changed kext-path to /Library/Extensions 2020-05-28 11:42:26 +02:00
tests added connect under reset code 2020-05-22 14:40:26 -04:00
.gitignore General Project Update 2020-04-27 20:20:50 +02:00
.travis.sh Refactoring for build settings 2020-05-19 11:28:35 +02:00
.travis.yml Updated travis CI test-builds 2020-05-06 19:48:21 +02:00
.version Preparation for Release v1.6.1 2020-05-28 21:57:56 +02:00
CHANGELOG.md Preparation for Release v1.6.1 2020-05-28 21:57:56 +02:00
CMakeLists.txt Merge pull request #964 from stlink-org/macos_kext 2020-05-28 19:05:27 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-02-20 00:24:18 +01:00
CONTRIBUTING.md General Project Update 2020-04-27 20:20:50 +02:00
LICENSE.md Updated license file for deb package 2020-04-23 11:04:38 +02:00
Makefile Updated build settings 2020-05-18 18:34:16 +02:00
README.md Preparation for Release v1.6.1 2020-05-28 21:57:56 +02:00
cmake_uninstall.cmake.in Whitespace cleanup 2020-04-15 16:20:17 +02:00
contributors.txt Preparation for Release v1.6.1 2020-05-28 21:57:56 +02:00
mingw64-build.bat Updated package & install configuration 2020-05-18 15:13:36 +02:00
run_clang_analyze.sh Minor formatting fixes & corrections 2020-05-25 00:40:56 +02:00

README.md

Open source version of the STMicroelectronics STlink Tools

BSD licensed GitHub release Downloads GitHub commits GitHub activity GitHub contributors 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.

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 which are all supported by this toolset:

  • 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.

The stlink toolset continues to maintain backwards compatibility with the STLINK/v1 programmer.
Please note that on macOS this support is limited to versions 10.13 - 10.15.

Tutorial & HOWTO

Our tutorial may help you along with some advanced tasks and additional info.

Installation

Windows:

As of Release v1.6.1 stand-alone Windows binaries are made available (again) on the release page of the project. Please ensure to select the correct version for your system (i686 or x86_64). The archive file can be unzipped to any desired location as it does not contain any hardcoded paths. However we suggest to move the unzipped application folder to C:\Program Files\ on 32-bit systems and to C:\Program Files (x86)\ on 64-bit systems (the toolset is a 32-bit).

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

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, as pull requests will go into this branch as well.

Please also refer to our Contribution Guidelines.

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)
  • Enhanced support for STLINKv3 programmer (#820)