ST-LINK STMicroelectronics, ST-LINK Datasheet
ST-LINK
Specifications of ST-LINK
ST-LINK
Available stocks
Related parts for ST-LINK
ST-LINK Summary of contents
Page 1
... ST-LINK tool. This is the STM32 ST-LINK utility user manual, describing its software functions. When working with the STM32 ST-LINK utility tool, you are encouraged to download the ST-LINK in-circuit debugger/programmer for the STM8 and STM32 which provides more information about the ST-LINK tool ...
Page 2
... STM32 ST-LINK utility user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.1 Main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 Menu bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 3 STM32 ST-LINK utility features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.1 Device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.2 Memory display and modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3.3 Flash memory erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3.4 Device programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.5 Option bytes configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 3.6 MCU core functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3 ...
Page 3
... STM32 F-1 , STM32 F-2 and STM32 L-1 series. ● ST-LINK V1. 1.3 Installing the STM32 ST-LINK utility Follow these steps and the on-screen instructions to install the STM32 ST-LINK utility. 1. Download the compressed STM32 ST-LINK utility software from the ST website. 2. Extract the contents of the .zip file into a temporary directory. ...
Page 4
... Memory display zone ● Device information zone ● Memory contents zone ● Title bar: The name of the current menu ● Menu bar: Use the menu bar to access the following STM32 ST-LINK utility functions: – File menu – View menu – Target menu – ...
Page 5
... UM0892 2.2 Menu bar The Menu bar allows users to execute the STM32 ST-LINK utility software features. 2.2.1 File menu Figure 2. File menu Open file... Save file as… Close File Exit 2.2.2 View menu Figure 3. View menu Binary file Device memory Displays the content of the device memory. ...
Page 6
... STM32 ST-LINK utility user interface 2.2.3 Target menu Figure 4. Target menu Connect Disconnect Erase Chip Erase Bank1 Erase Bank2 Erase Sectors… Program… Program & Verify… Loads a binary file into the device memory (Flash or RAM) Blank Check Compare with file Compares the MCU device memory content with hex, binary, srec file. ...
Page 7
... ST-LINK menu Firmware update 2.2.5 Help menu Figure 6. Help menu STM32 ST-LINK Utility User Manual Opens the STM32 ST-LINK utility user manual. ST-LINK User Manual About... mode functions for more details). Opens the Settings dialog box to select the debug interface (JTAG or SWD) ...
Page 8
... STM32 ST-LINK utility features 3 STM32 ST-LINK utility features This section provides a detailed description of how to use STM32 ST-LINK utility features: ● Device information ● Memory display and modification ● Flash memory erase ● Device programming ● Option bytes configuration ● MCU core functions ● ...
Page 9
... File | Save file as... Figure 8. STM32 ST-LINK utility user interface Note: When the Memory data zone displays device memory contents, any modification is automatically applied to the chip. You can modify user Flash memory, RAM memory and peripherals registers ...
Page 10
... STM32 ST-LINK utility features 3.3 Flash memory erase There are two type of Flash memory erase: ● Flash mass erase: Erase all the memory Flash sectors of the connected device. This is done by clicking on the menu Target | Erase Chip. ● Flash Sector Erase: Erase the selected sector(s) of the Flash memory. To select sector(s Target | Erase Sectors ...
Page 11
... UM0892 3.4 Device programming The STM32 ST-LINK utility can download binary, Hex, or srec files into Flash or RAM memory this, follow these steps: 1. Click on Target | Program... (or Target | Program & Verify... if you want verify the written data) to open the Open file dialog box as shown binary file is already opened step 3 ...
Page 12
... STM32 ST-LINK utility features Figure 12. Device programming dialog box (verification) 3.5 Option bytes configuration The STM32 ST-LINK utility can configure all the option bytes via the Option Bytes dialog box shown in Figure 13 The Option Bytes dialog box contains the following sections: ● ...
Page 13
... You can modify the write protection of each Flash sector group here. Figure 13. Option Bytes dialog box For more details, please refer to the Option Bytes section in the Flash programming manual available from www.st.com. STM32 ST-LINK utility features Doc ID 16987 Rev 5 13/22 ...
Page 14
... STM32 ST-LINK utility features 3.6 MCU core functions The Core panel dialog box shown in values. It also allows you to carry out the following actions on the MCU, using the buttons on the right: ● Run: Run the core. ● Halt: Halt the core. ● ...
Page 15
... Connection to the device should be established to be able to select the option Bytes configuration using the configure button. 4 The connected devices should be derivatives of the same STM32 family and will be all connected in the same mode (JTAG or SWD). STM32 ST-LINK utility features Figure 15 allows programing and configuring Doc ID 16987 Rev 5 15/22 ...
Page 16
... STM32 ST-LINK Utility Command Line Interface (CLI) 4 STM32 ST-LINK Utility Command Line Interface (CLI) 4.1 Command Line Usage The following sections describe how to use the STM32 ST-LINK Utility from the command line. The ST-LINK Utility Command Line Interface is located at [Install_Directory]\STM32 ST- LINK Utility\ST-LINK Utility. 4.1.1 ...
Page 17
... Description: Set Software or hardware breakpoint at spe- cific address. If address is not specified, 0x08000000 is used. Command: -ClrBP Syntax: -ClrBP Description: Clear all hardware breakpoints if any. Command:-CoreReg Syntax: -CoreReg e.g. -CoreReg Description: Read Core registers. STM32 ST-LINK Utility Command Line Interface (CLI) Doc ID 16987 Rev 5 17/22 ...
Page 18
... STM32 ST-LINK Utility Command Line Interface (CLI) Command: -SCore -SCore Syntax: Description: Get Core status. 4.1.3 Flash commands Command: -ME Syntax: -ME Description: Full chip erase. Command: -SE Syntax: -SE Sector_index e.g. -SE 4 Description: Perform Sector <Sector_index> erase opera- tion. Command: -P Syntax: -P <File_Path> [<Address>] e.g1 “C:\file.srec” ...
Page 19
... BFB2=<Value>: <Value> should Boot from Flash bank 2 when boot pins are set in boot from user Flash position(default Boot from Flash bank 1 when boot pins are set in boot from user Flash position(default). STM32 ST-LINK Utility Command Line Interface (CLI) Doc ID 16987 Rev 5 19/22 ...
Page 20
... STM32 ST-LINK Utility Command Line Interface (CLI) Note: BFB2 is available only on devices containing two flash banks. Data0=<Value>: Set Data0 option byte.<Value> should be in [0..0xFF] Note: Not available on STM32 F-2 and STM32 L-1 series. Data1=<Value>: Set Data1 option byte.<Value> should ...
Page 21
... Revision 1 Initial release. 2 Changed Figs 1,2,3,4,5,6 and 7. Added SWD support. 3 Added support of XL-density devices in Added support of STM32 L-1 series: 4 3.5: Option bytes configuration Hex, srec format support. Command Line Interfact support. 5 Changed name and all figures. Added Section 3.7: Automatic mode functions ...
Page 22
... The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America ...