Skip to content
Open source STM32 MCU programming toolset
C CMake Other
Branch: develop
Clone or download

Latest commit

Nightwalker-87 Merge pull request #959 from chenguokai/develop
Fixes for STM32F0 flashloader (Closes #958)
Latest commit 273e798 May 18, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates May 13, 2020
cmake General Project Update Apr 27, 2020
debian Updated pkgconfig Apr 23, 2020
doc Updated tutorial May 10, 2020
etc update udev rules for stlinkv2-1 Mar 31, 2020
flashloaders Fix issue 958, move F0 flashloader nops to assembly May 18, 2020
include Merge branch 'develop' into stlink-v3_pre May 9, 2020
scripts Deprecated old appveyor-mingw script Apr 7, 2020
src Fix issue 958, move F0 flashloader nops to assembly May 18, 2020
stlinkv1_macosx_driver Resolved conflicts with develop branch. Feb 24, 2020
tests Fix missing cmp and wrong expected value for freq May 7, 2020
.gitignore General Project Update Apr 27, 2020
.travis.sh Partial project restructuring Apr 16, 2020
.travis.yml General Project Update Apr 27, 2020
.version compare git version with .version Mar 1, 2020
CHANGELOG.md Updated CHANGELOG.md Apr 27, 2020
CMakeLists.txt General Project Update Apr 27, 2020
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Feb 19, 2020
CONTRIBUTING.md General Project Update Apr 27, 2020
LICENSE.md Updated license file for deb package Apr 23, 2020
Makefile Refactoring for cmake build settings Apr 25, 2020
README.md Fix: tutorial.md should be correctly linked from readme May 2, 2020
cmake_uninstall.cmake.in Whitespace cleanup Apr 15, 2020

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.
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 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, 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)
  • Support for STLINKv3 programmer (#820)
You can’t perform that action at this time.