From the STLINK tutorial.pdf:

STLINK is open source software to program and debug ST's STM32 Discovery kits. Those kits
have an onboard chip that translates USB commands sent by the host PC into JTAG/SWD commands. This chip is called STLINK, and comes in 2 versions (STLINK v1 and v2).

Here I will provide you the executables for the STLINK GDB Server for Windows.
The project was created by the STLINK development team.


For the test of the software a STM32F4-Discovery board was used:

The example project can be find here.


Before you can use the STLINK GDB Server, make sure that you have installed the
STM32 ST-Link Utility software. This software can be find here (Design support).

After you have installed the ST-Link Utility, you can download the STLINK zip file from the download section and unzip it. Assumed you had unzipped it on drive "C:\", you will see a folder named
"C:\stlink-20121227-win" (depending from the version). In that folder you will find the source which was used, and the executable in the "bin" folder.

For starting the GDB Server use "st-util" in the DOS-Box. The result should look like:

STLINK GDB Server (Dec 27 2012 19:29:29)
Many thanks to the STLINK development team.

2012-12-28T17:30:08 INFO src/stlink-usb.c: -- exit_dfu_mode
2012-12-28T17:30:08 INFO src/stlink-common.c: Loading device parameters....
2012-12-28T17:30:08 INFO src/stlink-common.c: Device connected is: F4 device, id
2012-12-28T17:30:08 INFO src/stlink-common.c: SRAM size: 0x30000 bytes (192 KiB)
, Flash: 0x100000 bytes (1024 KiB) in pages of 16384 bytes
Chip ID is 00000413, Core ID is 2ba01477.
KARL - should read back as 0x03, not 60 02 00 00
Listening at *:4242...

Here the GDB Server is connected to a STM32F4-Discovery board and waits for a connection from the GDB debugger at port 4242.


I have only compiled the source code. Therefore the credits goes to the STLINK development team
for creating the project. The original source from the GDB Server is available here too.


stlink-20121227-win STLINK v0.5.3 for Windows, tested with Windows XP (942 KB)

stlink-20130324-win STLINK v0.5.6 for Windows, tested with Windows XP (942 KB)