没有合适的资源?快使用搜索试试~ 我知道了~
内容概要:本文档为ST公司发布的STM32 ST-LINK Utility用户手册,详细介绍了该软件的功能与使用方法。该工具用于通过ST-LINK或ST-LINK/V2对STM32系列微控制器进行系统内编程和调试。文档涵盖软件安装、系统与硬件要求、用户界面介绍(包括主窗口、菜单栏各功能)、核心功能操作(如设备信息读取、内存显示与修改、Flash擦除与编程、选项字节配置、MCU核心控制及自动模式批量操作),并提供了命令行接口(CLI)的使用说明和返回码定义。此外,还列出了支持的开发工具型号及软件版本更新历史。;
适合人群:嵌入式系统开发工程师、STM32单片机初学者及中级开发者,具备基本的微控制器应用知识和PC操作能力。;
使用场景及目标:①在开发环境中快速烧录STM32芯片程序;②调试过程中查看和修改内存数据、寄存器状态;③批量生产时自动化完成芯片烧录与校验;④通过命令行实现脚本化操作,提升效率。;
阅读建议:建议结合实际硬件(如STM32开发板和ST-LINK调试器)同步操作,参考文档中的图示和菜单路径逐步实践;对于高级用户,可重点学习CLI部分以实现自动化流程;同时推荐查阅相关ST-LINK硬件手册以获得更完整的调试支持信息。

January 2013 Doc ID 16987 Rev 10 1/34
UM0892
User manual
STM32 ST-LINK Utility software description
Introduction
The STM32 ST-LINK Utility software facilitates fast in-system programming of the STM32
microcontroller families in development environments via the tools, ST-LINK and
ST-LINK/V2.
This is the STM32 ST-LINK Utility user manual, describing its software functions. When
working with the STM32 ST-LINK Utility, you are encouraged to download the ST-LINK
in-circuit debugger/programmer user manual (UM0627) or the ST-LINK/V2 in-circuit
debugger/programmer user manual (UM1075) for the STM8 and STM32 which provide
more information about the ST-LINK tools.
Table 1. Applicable tools
Type Part number
Development tools ST-LINK, ST-LINK/V2
www.st.com

Contents UM0892
2/34 Doc ID 16987 Rev 10
Contents
1 Getting started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 System requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Hardware requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Installing the STM32 ST-LINK Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Uninstalling the STM32 ST-LINK Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 STM32 ST-LINK Utility user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1 Main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Menu bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.1 File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.2 Edit Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.3 View menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.4 Target menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.5 ST-LINK menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.6 Help menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 STM32 ST-LINK Utility features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1 Device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 Memory display and modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Flash memory erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.4 Device programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.5 Option bytes configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.6 MCU core functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.7 Automatic mode functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4 STM32 ST-LINK Utility command line interface (CLI) . . . . . . . . . . . . . . 23
4.1 Command line usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.1.1 Connection and memory manipulation commands . . . . . . . . . . . . . . . . 23
4.1.2 Core commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.1.3 Flash commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1.4 Option byte commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.1.5 ST-LINK_CLI return codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

List of tables UM0892
4/34 Doc ID 16987 Rev 10
List of tables
Table 1. Applicable tools. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2. ST-LINK_CLI return codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Table 3. Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

UM0892 List of figures
Doc ID 16987 Rev 10 5/34
List of figures
Figure 1. STM32 ST-LINK Utility user interface main window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 2. File menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 3. Edit menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4. View menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 5. Target menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 6. ST-LINK menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Figure 7. Help menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 8. Device information zone in the main user interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 9. STM32 ST-LINK Utility user interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 10. Flash Memory Mapping dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 11. Open file dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 12. Device programming dialog box (programming). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 13. Device programming dialog box (verification). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Figure 14. Option Bytes dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 15. MCU Core panel dialog box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 16. Automatic mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
剩余33页未读,继续阅读
资源推荐
资源评论
2018-09-03 上传
2021-03-08 上传

105 浏览量
154 浏览量
2017-08-11 上传
2022-06-29 上传
2019-05-21 上传
2010-01-07 上传
2022-09-24 上传

167 浏览量
138 浏览量
2023-08-05 上传

143 浏览量
2015-04-20 上传
109 浏览量

115 浏览量
2021-01-04 上传
2019-09-05 上传
118 浏览量
2011-10-20 上传

128 浏览量

173 浏览量
125 浏览量
2011-10-02 上传

资源评论


hktkzgd
- 粉丝: 0
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- lexruntimeservice-jvm-1.4.74-sources.jar
- ehr-common-utils-3.1.5-javadoc.jar
- opsworks-jvm-1.3.100-sources.jar
- tehanu-core-3.3.3-javadoc.jar
- tnb-1.4.49-javadoc.jar
- jeap-server-sent-events-core-1.2.2.jar
- securitylake-jvm-1.0.47.jar
- go-plugin-api-experimental-17.11.0-5456-javadoc.jar
- workdocs-jvm-1.2.25.jar
- route53resolver-jvm-1.4.36.jar
- repostspace-jvm-1.4.107-javadoc.jar
- greengrassv2-jvm-1.3.23-sources.jar
- qldb-jvm-1.3.49-sources.jar
- snowdevicemanagement-jvm-1.3.76-javadoc.jar
- personalizeevents-jvm-1.3.15-javadoc.jar
- otavia-codec-memcache_3-0.4.3.jar
安全验证
文档复制为VIP权益,开通VIP直接复制
