The ST-LINK is an in-circuit debugger and programmer for the STM8 and STM32 microcontroller families. The single wire interface module (SWIM) and JTAG/serial wire debugging (SWD) interfaces are used to communicate with any STM8 or STM32 microcontroller located on an application board. Official reference can be found here.
You can configure debugging tool using debug_tool option in “platformio.ini” (Project Configuration File):
[env:myenv]
platform = ...
board = ...
debug_tool = stlink
If you would like to use this tool for firmware uploading, please change upload protocol:
[env:myenv]
platform = ...
board = ...
debug_tool = stlink
upload_protocol = stlink
More options:
Please install official ST-LINK USB driver.
Not required.
Please install “udev” rules 99-platformio-udev.rules. If you already installed them before, please check that your rules are up-to-date or repeat steps.
ST-Link JTAG 20-Pin Connector |
Board JTAG Pin |
Description |
---|---|---|
1 |
VCC |
Positive Supply Voltage — Power supply for JTAG interface drivers |
4 |
GND |
Digital ground |
5 |
TDI |
Test Data In pin |
7 |
TMS |
Test Mode State pin |
9 |
TCK |
JTAG Return Test Clock |
13 |
TDO |
Test Data Out pin |
15 |
RESET |
Connect this pin to the (active low) reset input of the target CPU |
ST-Link SWD 20-Pin Connector |
Board SWD Pin |
Description |
---|---|---|
1 |
VCC |
Positive Supply Voltage — Power supply for JTAG interface drivers |
4 |
GND |
Digital ground |
7 |
SWDIO |
Data I/O |
9 |
SWCLK |
Clock |
15 |
RESET |
Connect this pin to the (active low) reset input of the target CPU |
Name |
Description |
---|---|
Open-source, embedded development platform for Aceinna IMU hardware. Run custom algorithms and navigation code on Aceinna IMU/INS hardware. |
|
Atmel | SMART offers Flash- based ARM products based on the ARM Cortex-M0+, Cortex-M3 and Cortex-M4 architectures, ranging from 8KB to 2MB of Flash including a rich peripheral and feature mix. |
|
The Nordic nRF51 Series is a family of highly flexible, multi-protocol, system-on-chip (SoC) devices for ultra-low power wireless applications. nRF51 Series devices support a range of protocol stacks including Bluetooth Smart (previously called Bluetooth low energy), ANT and proprietary 2.4GHz protocols such as Gazell. |
|
The nRF52 Series are built for speed to carry out increasingly complex tasks in the shortest possible time and return to sleep, conserving precious battery power. They have a Cortex-M4F processor and are the most capable Bluetooth Smart SoCs on the market. |
|
The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development. |
|
The STM8 is an 8-bit microcontroller family by STMicroelectronics an extended variant of the ST7 microcontroller architecture. STM8 microcontrollers are particularly low cost for a full-featured 8-bit microcontroller. |
Name |
Description |
---|---|
Arduino Wiring-based Framework allows writing cross-platform software to control devices attached to a wide range of Arduino boards to create all kinds of creative coding, interactive objects, spaces or physical experiences. |
|
The ARM Cortex Microcontroller Software Interface Standard (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex-M processor series and specifies debugger interfaces. The CMSIS enables consistent and simple software interfaces to the processor for interface peripherals, real-time operating systems, and middleware. It simplifies software re-use, reducing the learning curve for new microcontroller developers and cutting the time-to-market for devices. |
|
The libOpenCM3 framework aims to create a free/libre/open-source firmware library for various ARM Cortex-M0(+)/M3/M4 microcontrollers, including ST STM32, Ti Tiva and Stellaris, NXP LPC 11xx, 13xx, 15xx, 17xx parts, Atmel SAM3, Energy Micro EFM32 and others. |
|
The mbed framework The mbed SDK has been designed to provide enough hardware abstraction to be intuitive and concise, yet powerful enough to build complex projects. It is built on the low-level ARM CMSIS APIs, allowing you to code down to the metal if needed. In addition to RTOS, USB and Networking libraries, a cookbook of hundreds of reusable peripheral and module libraries have been built on top of the SDK by the mbed Developer Community. |
|
Simba is an RTOS and build framework. It aims to make embedded programming easy and portable. |
|
The ST Standard Peripheral Library provides a set of functions for handling the peripherals on the STM32 Cortex-M3 family. The idea is to save the user (the new user, in particular) having to deal directly with the registers. |
|
STM32Cube embedded software libraries, including: The HAL hardware abstraction layer, enabling portability between different STM32 devices via standardized API calls; The Low-Layer (LL) APIs, a light-weight, optimized, expert oriented set of APIs designed for both performance and runtime efficiency. |
Note
For more detailed board
information please scroll tables below by horizontal.
Name |
Platform |
Debug |
MCU |
Frequency |
Flash |
RAM |
---|---|---|---|---|---|---|
External |
STM32F415RGT |
168MHz |
1MB |
128KB |
||
External |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F446RET6 |
180MHz |
512KB |
128KB |
||
On-board |
STM32F765VIT6 |
216MHz |
2MB |
512KB |
||
On-board |
STM32F446VET6 |
168MHz |
512KB |
128KB |
||
External |
STM32F405RG |
120MHz |
1MB |
128KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
External |
STM32F417VGT6 |
168MHz |
1MB |
192KB |
||
External |
STM32F427VIT6 |
168MHz |
1.99MB |
256KB |
||
External |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F407VGT6 |
168MHz |
512KB |
192KB |
||
External |
STM32F407ZGT6 |
168MHz |
1MB |
192KB |
||
External |
STM32F407ZET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F103C8T6 |
72MHz |
64KB |
20KB |
||
External |
STM32F103C8T6 |
72MHz |
128KB |
20KB |
||
External |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F103C6T6 |
72MHz |
32KB |
10KB |
||
External |
STM32F103C8T6 |
72MHz |
64KB |
20KB |
||
External |
STM32F103C8T6 |
72MHz |
128KB |
20KB |
||
External |
NRF52832 |
64MHz |
512KB |
64KB |
||
External |
NRF51822 |
32MHz |
256KB |
32KB |
||
On-board |
NRF52832 |
64MHz |
512KB |
64KB |
||
External |
STM32F030F4P6 |
48MHz |
16KB |
4KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
External |
STM32F411RET6 |
100MHz |
512KB |
128KB |
||
External |
STM32F407VGT6 |
168MHz |
512KB |
192KB |
||
External |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
External |
STM32F070CBT6 |
48MHz |
120KB |
14.81KB |
||
External |
STM32F411RET6 |
100MHz |
512KB |
128KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
External |
STM32F103CBT6 |
72MHz |
120KB |
20KB |
||
External |
STM32F103RBT6 |
72MHz |
108KB |
17KB |
||
External |
STM32F103RET6 |
72MHz |
256KB |
48KB |
||
External |
STM32F103CBT6 |
72MHz |
120KB |
20KB |
||
External |
STM32F103CBT6 |
72MHz |
108KB |
17KB |
||
On-board |
STM32F439ZIY6 |
168MHz |
2MB |
256KB |
||
External |
STM32F103CBT6 |
72MHz |
105.47KB |
16.60KB |
||
On-board |
STM32F412ZGT6 |
100MHz |
1MB |
256KB |
||
External |
STM32F411RET6 |
100MHz |
512KB |
128KB |
||
External |
STM32F411RET6 |
100MHz |
512KB |
128KB |
||
External |
STM32L151CCU6 |
32MHz |
256KB |
32KB |
||
External |
STM32F405RGT6 |
168MHz |
1MB |
192KB |
||
External |
STM32L152RC |
32MHz |
256KB |
32KB |
||
On-board |
NRF51822 |
32MHz |
256KB |
32KB |
||
On-board |
NRF52832 |
64MHz |
512KB |
64KB |
||
On-board |
NRF52840 |
64MHz |
1MB |
256KB |
||
External |
NRF51822 |
32MHz |
256KB |
32KB |
||
External |
STM32L151RBT6 |
32MHz |
128KB |
32KB |
||
External |
STM32L151RBT6 |
32MHz |
128KB |
16KB |
||
On-board |
NRF51822 |
16MHz |
256KB |
32KB |
||
On-board |
NRF52832 |
64MHz |
512KB |
64KB |
||
On-board |
NRF52832 |
64MHz |
512KB |
64KB |
||
On-board |
NRF51822 |
16MHz |
256KB |
16KB |
||
On-board |
STM32F401RET6 |
84MHz |
512KB |
96KB |
||
On-board |
STM32L476RGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32F334C8T6 |
72MHz |
64KB |
12KB |
||
On-board |
STM32F401VCT6 |
84MHz |
256KB |
64KB |
||
On-board |
STM32F411VET6 |
100MHz |
512KB |
128KB |
||
On-board |
STM32F413ZHT6 |
100MHz |
512KB |
128KB |
||
On-board |
STM32F429ZIT6 |
180MHz |
2MB |
256KB |
||
On-board |
STM32F469NIH6 |
180MHz |
1MB |
384KB |
||
On-board |
STM32F746NGH6 |
216MHz |
1MB |
320KB |
||
On-board |
STM32F769NIH6 |
216MHz |
1MB |
512KB |
||
On-board |
STM32L053C8T6 |
32MHz |
64KB |
8KB |
||
On-board |
STM32L100RCT6 |
32MHz |
256KB |
16KB |
||
On-board |
STM32L476VGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32L496AGI6 |
80MHz |
1MB |
320KB |
||
On-board |
STM32L072CZ |
32MHz |
192KB |
20KB |
||
On-board |
STM32L475VGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32F072RBT6 |
48MHz |
128KB |
16KB |
||
On-board |
STM32F030R8T6 |
48MHz |
64KB |
8KB |
||
On-board |
STM32F031K6T6 |
48MHz |
32KB |
4KB |
||
On-board |
STM32F042K6T6 |
48MHz |
32KB |
6KB |
||
On-board |
STM32F070RBT6 |
48MHz |
128KB |
16KB |
||
On-board |
STM32F072RBT6 |
48MHz |
128KB |
16KB |
||
On-board |
STM32F091RCT6 |
48MHz |
256KB |
32KB |
||
On-board |
STM32F103RBT6 |
72MHz |
128KB |
20KB |
||
On-board |
STM32F207ZGT6 |
120MHz |
1MB |
128KB |
||
On-board |
STM32F302R8T6 |
72MHz |
64KB |
16KB |
||
On-board |
STM32F303K8T6 |
72MHz |
64KB |
16KB |
||
On-board |
STM32F303RET6 |
72MHz |
512KB |
64KB |
||
On-board |
STM32F303ZET6 |
72MHz |
512KB |
64KB |
||
On-board |
STM32F334R8T6 |
72MHz |
64KB |
16KB |
||
On-board |
STM32F401RET6 |
84MHz |
512KB |
96KB |
||
On-board |
STM32F410RBT6 |
100MHz |
128KB |
32KB |
||
On-board |
STM32F411RET6 |
100MHz |
512KB |
128KB |
||
On-board |
STM32F412ZGT6 |
100MHz |
1MB |
256KB |
||
On-board |
STM32F413ZHT6 |
100MHz |
512KB |
128KB |
||
On-board |
STM32F429ZIT6 |
180MHz |
2MB |
256KB |
||
On-board |
STM32F439ZIT6 |
180MHz |
2MB |
256KB |
||
On-board |
STM32F446RET6 |
180MHz |
512KB |
128KB |
||
On-board |
STM32F446ZET6 |
180MHz |
512KB |
128KB |
||
On-board |
STM32F722ZET6 |
216MHz |
512KB |
256KB |
||
On-board |
STM32F746ZGT6 |
216MHz |
1MB |
320KB |
||
On-board |
STM32F756ZG |
216MHz |
1MB |
320KB |
||
On-board |
STM32F767ZIT6 |
216MHz |
2MB |
512KB |
||
On-board |
STM32H743ZIT6 |
400MHz |
2MB |
1MB |
||
On-board |
STM32L011K4T6 |
32MHz |
16KB |
2KB |
||
On-board |
STM32L031K6T6 |
32MHz |
32KB |
8KB |
||
On-board |
STM32L053R8T6 |
32MHz |
64KB |
8KB |
||
On-board |
STM32L073RZ |
32MHz |
192KB |
20KB |
||
On-board |
STM32L152RET6 |
32MHz |
512KB |
80KB |
||
On-board |
STM32L412KBU6 |
80MHz |
128KB |
40KB |
||
On-board |
STM32L432KCU6 |
80MHz |
256KB |
64KB |
||
On-board |
STM32L433RC |
80MHz |
256KB |
64KB |
||
On-board |
STM32L452RET6 |
80MHz |
256KB |
64KB |
||
On-board |
STM32L476RGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32L476RGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32L496ZGT6 |
80MHz |
1MB |
128KB |
||
On-board |
STM32L496ZGT6P |
80MHz |
1MB |
320KB |
||
On-board |
STM32L4R5ZIT6 |
120MHz |
2MB |
640KB |
||
On-board |
STM32F030R8T6 |
48MHz |
64KB |
8KB |
||
On-board |
STM32F051R8T6 |
48MHz |
64KB |
8KB |
||
On-board |
STM32F303VCT6 |
72MHz |
256KB |
48KB |
||
On-board |
STM32F407VGT6 |
168MHz |
1MB |
192KB |
||
On-board |
STM32L073VZT6 |
32MHz |
192KB |
20KB |
||
On-board |
STM32L152RBT6 |
32MHz |
128KB |
16KB |
||
On-board |
STM32F100RBT6 |
24MHz |
128KB |
8KB |
||
On-board |
STM8S105C6T6 |
16MHz |
32KB |
2KB |
||
On-board |
STM32L476JG |
80MHz |
1MB |
128KB |
||
External |
STM32F103C8T6 |
72MHz |
64KB |
20KB |
||
External |
STM32F103CBT6 |
72MHz |
128KB |
20KB |
||
External |
STM32F103R8T6 |
72MHz |
64KB |
20KB |
||
External |
STM32F103RBT6 |
72MHz |
128KB |
20KB |
||
External |
STM32F103RCT6 |
72MHz |
256KB |
48KB |
||
External |
STM32F103RET6 |
72MHz |
512KB |
64KB |
||
External |
STM32F103T8T6 |
72MHz |
20KB |
64KB |
||
External |
STM32F103TBT6 |
72MHz |
128KB |
20KB |
||
External |
STM32F103VBT6 |
72MHz |
128KB |
20KB |
||
External |
STM32F103VCT6 |
72MHz |
256KB |
48KB |
||
External |
STM32F103VDT6 |
72MHz |
384KB |
64KB |
||
External |
STM32F103VET6 |
72MHz |
512KB |
64KB |
||
External |
STM32F103ZCT6 |
72MHz |
256KB |
48KB |
||
External |
STM32F103ZDT6 |
72MHz |
384KB |
64KB |
||
External |
STM32F103ZET6 |
72MHz |
512KB |
64KB |
||
External |
STM32F303CBT6 |
72MHz |
128KB |
32KB |
||
External |
STM32F407VET6 |
168MHz |
502.23KB |
128KB |
||
External |
STM32F407VGT6 |
168MHz |
1MB |
192KB |
||
External |
STM32F405RGT6 |
168MHz |
1MB |
192KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
External |
AT91SAM3X8E |
84MHz |
512KB |
96KB |
||
On-board |
NRF51822 |
16MHz |
128KB |
16KB |
||
On-board |
NRF51822 |
16MHz |
256KB |
16KB |
||
On-board |
STM32F407VET6 |
168MHz |
512KB |
192KB |
||
On-board |
NRF51822 |
16MHz |
256KB |
16KB |
||
On-board |
STM32F439VI |
180MHz |
2MB |
256KB |
||
External |
NRF51822 |
32MHz |
256KB |
32KB |
||
External |
NRF52832 |
64MHz |
512KB |
64KB |
||
External |
STM32F103TBU6 |
72MHz |
128KB |
20KB |
||
External |
NRF51822 |
32MHz |
256KB |
32KB |
||
External |
NRF52832 |
64MHz |
512KB |
64KB |
||
External |
NRF51822 |
32MHz |
256KB |
32KB |
||
External |
STM32F437VG |
180MHz |
1MB |
256KB |
||
On-board |
STM32F437VG |
180MHz |
1MB |
256KB |
||
External |
STM32F437VG |
180MHz |
1MB |
256KB |
||
On-board |
NRF52832 |
64MHz |
512KB |
64KB |
||
External |
STM32F439ZIY6 |
168MHz |
2MB |
256KB |
||
External |
STM32F439ZIY6 |
168MHz |
2MB |
256KB |
||
On-board |
NRF51822 |
16MHz |
256KB |
16KB |