# Open source version of the STMicroelectronics STLINK Tools
[![BSD licensed](https://img.shields.io/badge/license-BSD-blue.svg)](https://raw.githubusercontent.com/hyperium/hyper/master/LICENSE)
[![GitHub release](https://img.shields.io/github/release/stlink-org/stlink.svg)](https://github.com/stlink-org/stlink/releases/latest)
[![Downloads](https://img.shields.io/github/downloads/stlink-org/stlink/total)](https://github.com/stlink-org/stlink/releases/latest)
![GitHub commits](https://img.shields.io/github/commits-since/stlink-org/stlink/v1.8.0/develop)
![GitHub activity](https://img.shields.io/github/commit-activity/m/stlink-org/stlink)
![GitHub contributors](https://img.shields.io/github/contributors/stlink-org/stlink)
[![CodeQL](https://github.com/stlink-org/stlink/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/stlink-org/stlink/actions/workflows/codeql-analysis.yml)
[![C/C++ CI](https://github.com/stlink-org/stlink/actions/workflows/c-cpp.yml/badge.svg?branch=testing)](https://github.com/stlink-org/stlink/actions/workflows/c-cpp.yml)
Recent new features and bugfixes can be found in the [Changelog](CHANGELOG.md) of this software project.
#### License
The stlink library and tools are licensed under the **[BSD-3 License](LICENSE.md)**.
## 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, continued support by this toolset]_
- transport layer: SCSI passthru commands over USB
- stand-alone programmer
- on-board on STM32VL Discovery boards
- **STLINK/V2**
- transport layer: raw USB commands
- stand-alone programmer
- on-board on STM32L Discovery and STM32 Nucleo boards
- **STLINK/V2-1**
- transport layer: raw USB commands
- on-board on some STM32 Nucleo boards
- **STLINK-V3**
- transport layer: raw USB commands
- stand-alone programmer (STLINK-V3SET, STLINK-V3MINI, STLINK-V3MODS)
- on-board on some STM32 Nucleo boards (STLINK-V3E)
On the user level there is no difference in handling or operation between these different revisions.
The STlink toolset includes:
- `st-info` - a programmer and chip information tool
- `st-flash` - a flash manipulation tool
- `st-trace` - a logging tool to record information on execution
- `st-util` - a GDB server (supported in Visual Studio Code / VSCodium via the [Cortex-Debug](https://github.com/Marus/cortex-debug) plugin)
- `stlink-lib` - a communication library
- `stlink-gui` - a GUI-Interface _[optional]_
## Supported operating systems and hardware combinations
Currently known working MCU targets are listed in [supported_devices.md](doc/supported_devices.md).
A list of supported operating can be found in [version_support.md](doc/version_support.md).
## Tutorial & HOWTO
Our [tutorial](doc/tutorial.md) 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 32-bit).
Alternatively one may compile and install from source as described in our [compiling manual](doc/compiling.md#Windows).
**Linux / Unix**:
We recommend to install `stlink-tools` from the package repository of the used distribution:
**Note:** As packages distributed via the [Debian](https://packages.debian.org/buster/stlink-tools) and [Ubuntu](https://packages.ubuntu.com/stlink-tools) repositories differ from our self-maintained deb-package, we recommend to use the latter instead (see link below). It provides the opportunity to handle and fix user-reported package issues directly within the project and is not redundant to any limitations deriving from external maintenance guidelines.
- Debian Linux: [(Link)](https://github.com/stlink-org/stlink/releases)
- Ubuntu Linux: [(Link)](https://github.com/stlink-org/stlink/releases)
- Arch Linux: [(Link)](https://archlinux.org/packages/extra/x86_64/stlink/)
- Alpine Linux: [(Link)](https://pkgs.alpinelinux.org/packages?name=stlink)
- Fedora: [(Link)](https://src.fedoraproject.org/rpms/stlink)
- FreeBSD: Users can install from [freshports](https://www.freshports.org/devel/stlink)
**macOS**:
**Support for macOS has been dropped with v1.8.0.**
Please use v1.7.0 instead, **but note that this version is no longer maintained and supported!**
## 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](doc/compiling.md).
## Contributing and versioning
- The semantic versioning scheme is used. Read more at [semver.org](http://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](CONTRIBUTING.md).
## User Reviews
*I hope it's not to out of topic, but I've been so frustrated with AVR related things on OpenBSD, the fact that stlink built out of the box without needing to touch anything was so relieving. Literally made my whole weekend better!
I take it's thanks to @Crest and also to the stlink-org team (@Nightwalker-87 and @xor-gate it seems) to have made a software that's not unfriendly to the "fringe" OSes.
Thank you <3"* - nbonfils, 11.12.2021
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
开源STM32 MCU编程工具集.rar (234个子文件)
st-flash.1 2KB
st-util.1 2KB
st-info.1 1KB
mingw64-build.bat 269B
gdb-server.c 54KB
common_flash.c 49KB
usb.c 45KB
common.c 36KB
sg.c 35KB
option_bytes.c 31KB
flash_loader.c 30KB
gui.c 30KB
trace.c 20KB
semihosting.c 13KB
flash_opts.c 12KB
flash.c 12KB
lib_md5.c 10KB
chipid.c 9KB
win32_socket.c 7KB
getopt.c 7KB
sg.c 7KB
flash.c 7KB
read_write.c 4KB
info.c 4KB
gdb-remote.c 4KB
usb.c 3KB
logging.c 3KB
map_file.c 2KB
calculate.c 2KB
md5.c 860B
sys_time.c 844B
mmap.c 762B
helper.c 694B
code_style.cfg 121KB
changelog 7KB
changelog 419B
changelog 240B
F76x_F77x.chip 531B
L0xxx_Cat_5.chip 511B
F302_F303_F398_HD.chip 505B
L0xxx_Cat_3.chip 498B
F1xx_VL_MD_LD.chip 496B
L0xxx_Cat_1.chip 490B
H74x_H75x.chip 489B
L496x_L4A6x.chip 488B
F301_F302_F318.chip 484B
L0xxx_Cat_2.chip 481B
F302_F303_F358.chip 473B
F303_F328_F334.chip 472B
G03x_G04x.chip 465B
G0Bx_G0Cx.chip 460B
F4x5_F4x7.chip 457B
G05x_G06x.chip 455B
G07x_G08x.chip 455B
F1xx_CL.chip 454B
L1xx_Cat_4.chip 452B
F1xx_VL_HD.chip 448B
H7Ax_H7Bx.chip 444B
G49x_G4Ax.chip 438B
G47x_G48x.chip 438B
H72x_H73x.chip 437B
F1xx_MD.chip 433B
F72x_F73x.chip 432B
L43x_L44x.chip 430B
F1xx_XLD.chip 428B
G43x_G44x.chip 428B
F1xx_LD.chip 428B
F74x_F75x.chip 428B
F1xx_HD.chip 426B
F401xD_xE.chip 423B
L47x_L48x.chip 423B
WBx0_WBx5.chip 420B
F03x.chip 420B
L45x_L46x.chip 419B
F07x.chip 418B
F09x.chip 416B
C031xx.chip 416B
C011xx.chip 415B
F446.chip 415B
F37x.chip 414B
F04x.chip 413B
F2xx.chip 412B
F05x.chip 412B
L1xx_Cat_2.chip 398B
F46x_F47x.chip 398B
F42x_F43x.chip 397B
F413_F423.chip 395B
L4Px_L4Qx.chip 390B
L1xx_Cat_1.chip 390B
L1xx_Cat_3.chip 386B
WLEx.chip 384B
L1xx_Cat_5.chip 383B
U55Fx_U5Gx.chip 376B
U59x_U5Ax.chip 375B
U535_U545.chip 374B
U575_U585.chip 374B
L4Rx.chip 373B
L41x_L42x.chip 367B
L5x5xx.chip 363B
F411xC_xE.chip 362B
共 234 条
- 1
- 2
- 3
资源评论
徐浪老师
- 粉丝: 6556
- 资源: 6880
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功