Skip to main content

StLink

MultiProg works with StLink as an SWD interface for ARM/RISCv programming.

Drivers and Original Software

First, we need to install the drivers and reflash the StLink. As of today, the latest tested version of the StLink firmware is 3.14.5.

Pinout

In the original version of StLink, there is an output with controlled VDD and an output with unmanaged, constant power. To work with StLink, you need to use the pin with constant power.

Reset

Make sure to check the reset functionality; it is required on many controllers for proper erasing/writing. You can select any controller in StLink and press connect; there should be a short pulse on the reset.

Serial Wire Debug (SWD)

A very common interface, originally an alternative to JTAG, operating over 2 pins (SWDIO/SWCLK). For ARM, this is the primary interface for programming and debugging.

Open-CMSIS-Pack

MultiProg uses Open-CMSIS-Pack packages (just like Keil, Segger, and others) for automatic generation and addition of ARM microcontrollers. However, since this does not guarantee correct software operation with the controller, we add algorithms and procedures on top of the generated controller.