stlink programs, flashes, and debugs STM32 boards through ST-LINK adapters on Linux, macOS, and Windows via command-line tools and a communication library.
Overview
stlink is an open source replacement for STMicroelectronics ST-LINK tooling. It supports ST-LINK programmer hardware from V1 through V3, including on-board debug adapters on Nucleo and Discovery boards.
The toolset includes utilities to inspect chips, manipulate flash, trace execution, expose a GDB server, and optionally provide a GUI. A shared library handles USB transport whether the adapter speaks SCSI passthrough or raw USB commands.
Packaged builds exist for Windows, and many Linux distributions ship stlink-tools in their repositories. macOS users typically build from source. Supported MCU targets are maintained in project device lists.
Key features
- Flash programming
- Chip information tool
- Execution trace logging
- TCP GDB server mode
- ST-LINK V1 through V3 support
- Shared communication library
- Optional GUI interface
- Wide MCU target list
Use cases
- Flashing STM32 firmware
- On-chip debugging with GDB
- Inspecting connected targets
- Remote debugging over TCP