ST Visual Programmer

Table of Contents

ST Visual Programmer STM32

ST Visual Programmer (STVP) is an STMicroelectronics programming tool for ST7, STM8, and STM32 microcontrollers. It reads, writes, erases, and verifies Flash memory and option bytes.

ST now marks STVP-STM32 as NRND (not recommended for new design) and states that it has been replaced by STM32CubeProgrammer. Use STVP primarily when maintaining an existing STVP-based process or working with supported legacy devices; for new STM32 programming workflows, start with STM32CubeProgrammer. The steps below document the existing STVP workflow.

What is ST Visual Programmer?

STVP offers a comprehensive flash programming environment for ST microcontrollers, enabling easy reading, writing, and verification of internal memory and option bytes.

Supported Debuggers/Programmers:

  • ST-Link
  • R-Link
  • STice
  • STick
  • ST7DVP3
  • ST-TSLink

Programming Modes (Protocols):

The programming mode depends on the debugger/programmer in use. For example, ST-Link supports:

  • JTAG
  • SWD
  • SWIM

How to Use ST Visual Programmer?

As STVP supports various debuggers/programmers, we will focus on the most commonly used one, ST-Link, to explain its usage. In this example, we will use an STM32F411 microcontroller.

STVP Download

Official ST sources:

STVP Installation

The downloaded sttoolset_pack42.exe includes both STVD (ST Visual Develop) and STVP (ST Visual Programmer) tools. You can choose one or both for installation.

ST Visual Programmer (STVP) Tool Installation
ST Visual Programmer (STVP) Tool Installation

STVP Configuration

After opening the STVP software, go to the configuration window to select the debugger type, programming mode, and the target microcontroller.

ST Visual Programmer (STVP) Configuration
ST Visual Programmer (STVP) Configuration

STVP Uploading Files

Before programming the MCU, we need to upload the file to the ST  Visual Programmer.

Upload the Files to ST Visual Programmer
Upload the Files to ST Visual Programmer

STVP Programming

Prior to programming, ensure that your STM32 is connected to the ST-Link:

Start Programming the STM Chips
Start Programming the STM Chips
Programming Completed
Programming Completed

STVP Erasing

During the programming process, you may encounter issues like write protection or lack of erasure. If programming or verification fails, check if the device needs erasing.

Fail to Programming (Verify failed)
Fail to Programming (Verify failed)

Select the sector to erase:

Erase the MCU Sectors
Erase the MCU Sectors

STVP Reading Flash

Sometimes, you may need to read the internal Flash memory of the microcontroller. You can use this tool to read and save it as a bin or hex file (provided that there is no read protection).

Read the MCU Flash
Read the MCU Flash

STVP Modifying Option Bytes

Some option bytes can be modified using programming tools, such as read/write protection settings:

Change the Option Byte of STVP
Change the Option Byte of STVP

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.

Share

Recommended Post

Need Help?

Scroll to Top

Instant Quote