St Link Utility Download

24.12.2020by
St Link Utility Download Rating: 7,6/10 9108 reviews

This is a guide on how to manually flash the firmware using ST-Link utility.

Introduction

  • Download the ST Link Utility from here, and download the firmware file from the project files list. Connect the J3 pins to either another ST-Link, or the ST-Link part of a discovery board. There are also ways to flash the firmware using other dev boards, and USB-UART modules, however I won't go into that here, there is ample info already out there.
  • Download stm 32 st-link utility for free. Development Tools downloads - STM32 ST-Link Utility by STMicroelectronics and many more programs are available for instant and free download.
  • Getting Started with ST-LINK On-Board. In order to get started with ST-LINK on-board and upgrade it to a J-Link OB, just a few steps are necessary: Make sure that the ST-LINK USB drivers are installed: Download; Make sure that the J-Link software package V5.12b or later is installed: Download; Download the SEGGER STLinkReflash utility: Download.
  • STM32 ST-LINK Utility.exe is the programs's main file and it takes around 604.50 KB (619008 bytes) on disk. STM32 ST-LINK Utility installs the following the executables on your PC, occupying about 2.61 MB (2741632 bytes) on disk. ST-LinkUpgrade.exe (658.50 KB) ST-LINKCLI.exe (210.50 KB).

A way to remove STM32 ST-LINK Utility from your PC with the help of Advanced Uninstaller PRO STM32 ST-LINK Utility is an application marketed by STMicroelectronics. Some computer users want to uninstall it. Sometimes this can be easier said than done because uninstalling this manually requires some experience regarding PCs.

There are two images to be flashed in the target, one for nanoBooter and another one for nanoCLR.

  1. Download the STM32 ST-LINK Utility from ST web site and install it in your development machine.

  2. Download a ZIP file with the firmware for the board from our web site here by clicking on the appropriate badge. This will take you to our JFrog Bintray repository that holds the packages with pre-build images for several target boards. After downloading it, unzip the package contents.

  3. Connect the target board to your PC using an USB cable. Note that on most ST deveopement boards there are two micro USB connectors. To follow this guide you'll want to use the one that's providing the JTAG connection through the ST-Link debugger. In doubt, check the PCB for the correct one or the board schematic. Volkswagen touran manual download.

  4. Launch the ST-LINK Utility that you've just installed and connect to the ST board.

  5. Perform a 'full chip erase' to clear the flash.

  6. Load the nanoBooter.hex file from the package and hit the 'Program and verify' button. Make sure you tick the 'Reset after programming' check box and hit 'Start'. After the upload completes, the MCU is reset and the nanoBooter image runs. You can check the success of the operation watching for a slow blink pattern on the LED. Congratulations, you now have a board running nanoFramework's booter!

  7. Next, load the nanoCLR.hex file from the extracted package folder and hit again the 'Program and verify' button. Make sure you tick the 'Reset after programming' check box and hit 'Start'. After the upload completes, the MCU is reset and the nanoCLR image will run. This time and if all goes as expected, there will be no LED blinking. You can check if the board is properly running .NET nanoFramework by looking into the Device Explorer window in VS.

As you may know, ST also produces his own debugger/programmer called ST-Link. It supports JTAG and SWD interfaces. You can purchase an ST-Link USB adapter, but there is a better option if you are into STM32 microcontrollers, and probably own one of ST32 Discovery boards. Since I have STM32VLDiscovery nearby, this is how to program another STM32F103RBT6 board using only four wires.

On discovery board, locate CN3 jumpers and disconnect them as they connect discovery board to a debugger.

Then locate CN2 pins and connect them to target boards JTAG connector as follows:

  • VDD (pin 1) to JTAG VCC (pin 1)
  • SWCLK (pin 2) to JTCK (pin 9)
  • SWDIO (pin 4) to JTMS (pin 7)
  • GND (pin 3) to GND (pin 4)

Power both boards and open ST-Link utility. You can see that the Medium Density board has been detected.

Now you can load the binary file, and program microcontrollers Flash memory. Using the Target menu, you can perform additional operations similar to J-Flash.

An exciting feature of ST-Link is MCU panel. Here you can do various things like Run code, halt, step, reset, core reset, and read core registers. You can treat this panel as a quick debugger

You will find a great tutorial in the user manual in ST-Link install location on your PC.

A couple more flashing methods: embedded bootloader and Using J-Link JTAG adapter

Comments are closed.