STM32 ST-LINK Utility

Table of Contents

STM32 ST-LINK Utility (STSW-LINK004)

What is STM32 ST-LINK utility?

STM32 ST-LINK Utility, also called STSW-LINK004, is a tool for programming (reading, writing, erasing, option words) of the entire STM32 series of chips. It not only provides a graphical interface (GUI), but also provides a command line interface (CLI).

Compared with ST Visual Programmer (STVP), ST-LINK Utility only supports the download debugger of ST-Link (multiple versions), and the only supported chip is STM32.

Programmable Files

  • Motorola S19
  • Bin file
  • Hex file

Functions

  • Erase, Read, Verify
  • One-time automated Programming (download/write)
  • Provides command line interface (CLI)
  • ST-LINK/V2 firmware upgrade
  • Configuration option byte
  • Compare file to target memory
  • Program\erase and verify external memory
  • Can load, edit and save executable and data files
  • Supports memory and core status views in real-time update mode

How to Use STM32 ST-LINK Utility?

As a programming tool, ST-LINK Utility includes conventional reading, writing (downloading / programming), erasing, option byte programming, etc. In this example, we use STM32F411 to show the details:

Tools Required

  • STM32 ST-LINK Utility Software
  • ST LINK /V2 Programmer x1
  • STM32 MCU x1
  • Jumper Wire (Several)

ST-LINK Utility Download

https://www.st.com/en/development-tools/stsw-link004.html

Download the ST-LINK Utility from STMicroelectronics
Download the ST-LINK Utility from STMicroelectronics

ST-LINK Utility installation

The installation package downloaded from the official website is an exe file, which means it only supports Windows and does not support operating systems such as Linux and Mac.

ST-LINK Utility Installation
ST-LINK Utility Installation

Hardware Connection

Connect the STM32 MCU with ST LINK programmer by jumper wires. To do this, you should match the pins with each other. And then, connect them with your PC.

Connect the ST Link Programmer with STM32 or STM8 MCU
Connect the ST Link Programmer with STM32 or STM8 MCU

Check the Connection

Open the ST-LINK Utility and click “Connect” to check the connection status.

Connect the ST-LINK Utility with STM32 Chip by ST-LINK V2 Programmer
Connect the ST-LINK Utility with STM32 Chip by ST-LINK V2 Programmer

If there’re some information like these, the connection is okay.

Connect ST-LINK Utility and STM32 Chip Successfully
Connect ST-LINK Utility and STM32 Chip Successfully

Programming the STM32

In order to program the STM32 with ST-LINK Utility, you need to open the file from your computer. and then click “Download”.

Upload the Files to ST-LINK Utility and Program STM32 Chip
Upload the Files to ST-LINK Utility and Program STM32 Chip

If there’re some information like these, the program is sucessful.

Program STM32 Chip Successfully
Program STM32 Chip Successfully

Subscribe

Join our subscribers list to get monthly blog updates, technology news, case studies. We will never send spam, and you can unsubscribe at any time.

About Author

Picture of Aidan Taylor
Aidan Taylor

I am Aidan Taylor and I have over 10 years of experience in the field of PCB Reverse Engineering, PCB design and IC Unlock.

Need Help?

Don't hesitate - Get in touch today to find out how we can help take your project to the next level.

Scroll to Top
welldone pcb manufacturer

Start to Achieve Your PCB Project