当前位置:网站首页>Summary of some open source libraries that drive MCU hardware debugger (including stlink debugger)
Summary of some open source libraries that drive MCU hardware debugger (including stlink debugger)
2022-07-23 09:08:00 【Biao】
ST company-launched stm32 Single chip is widely used , To support program debugging , And better Downloads ,ST The company also launched the corresponding st-link Hardware Debugger , Pass through at one end USB Connecting to a computer , The other end JTAG perhaps SW Interface connection board . So how do users use st-link Download and debug the program ?(keil etc. IDE Download and debugging functions have been integrated , We don't talk about this )
stlink Debugger is widely used , Therefore, open source libraries need to support at least stlink The debugger .
At least let users operate st-link There are several libraries for program download and debugging :
OpenOCD
This open source library , It can not only control stlink, It can also control all other hardware debuggers , such as jlink etc. . Many people use it. , There are many online references .
See these blogs for details :
The embedded IDE principle OpenOCD Introduce as well as stlink How to connect stm32 The board _ mark biao The blog of -CSDN Blog
Study with me OpenOCD( One ) - You know
stlink
This open source library ,GitHub - stlink-org/stlink: Open source STM32 MCU programming toolset
It can only be used for control stlink Hardware Debugger ( Other debuggers do not support ), Yes stm32 Single chip microcomputer carries out Program download and debugging . Use fewer people , There is less information on the Internet . It mainly includes these tools :
st-info- a programmer and chip information tool, Used to view the information of programs and single chip computersst-flash- a flash manipulation tool, Used to put the target program xx.hex Download it to the boardst-trace- a logging tool to record information on executionst-util- a GDB server (supported in Visual Studio Code / VSCodium via the Cortex-Debug plugin), Used to support stm32 MCU debuggingstlink-lib- a communication librarystlink-gui- a GUI-Interface [optional], In order to use the above tools more conveniently , A visual operation stlink The interface function of ,
Use , You can refer to this blog :ubuntu Use st-flash_Gkbytes The blog of -CSDN Blog
We can compile this open source library by ourselves , You can also download the compiled exe, Link to :Releases · stlink-org/stlink · GitHub

After downloading , Mainly a few exe The file , No installation required , Start command line window , Then the command line executes them , Just give the corresponding parameters

STM32 ST-LINK Utility
This Not open source ,ST The company specializes in its own stlink Launched visualization program download software , Support program download 、 Chip information reading 、 Memory erase and many other functions , however Can't debug . This tool is for batch downloading code , Used a lot .

summary
If only ST The company's stlink,stm32 Single chip microcomputer , that stlink Library will do , Support downloading and debugging . If you need to support other manufacturers' hardware debuggers and microcontrollers , Then use OpenOCD Well , For example, do it yourself IDE, Support various hardware debuggers , You have to use it. OpenOCD 了 .
边栏推荐
- LiveQing直播点播流媒体OBS推流直播如何获得接口校验token视频校验streamToken及配置token有效期
- 疫情隔离区订餐系统的开发
- 数学建模——插值拟合
- 解析steam与创客教育课堂的统筹规划
- 银联最新测试工程师笔试题目,你能得多少分?
- Template school jumpserver security operation and maintenance audit screen
- Ali II: why do MySQL indexes use b+ trees instead of jump tables?
- openresty lua-resty-balancer动态负载均衡
- 视频点播中相关分辨率说明
- BGP experiment
猜你喜欢

UGUI源码解析——IMaskable

TCP数据传输与性能

No requirement document, reject development?

Implementation of OA office system based on JSP

disruptor框架无锁实现生产者消费者代码实例

K3s - lightweight kubernetes cluster

解析steam与创客教育课堂的统筹规划

【管理篇 / 升级】* 02. 查看升级路径 * FortiGate 防火墙

带你走进MySQL MVCC的世界
![[zero based BLDC series] brushless DC motor control principle based on Hall sensor](/img/72/9595080e437a716be035187dadc8cc.png)
[zero based BLDC series] brushless DC motor control principle based on Hall sensor
随机推荐
-bash: wget: 未找到命令
50道经典计算机网络面试题,你答得上几个?(上)
【微信小程序】开发入门篇(二)
解析steam与创客教育课堂的统筹规划
【高等数学】矩阵的初等变换和行列式的初等变换
[Huawei online battle service] how can new players make up frames when the client quits reconnection or enters the game halfway?
UGUI源码解析——MaskUtilities
K3S - 轻量级Kubernetes集群
Metauniverse is not an existence that regards traffic as the ultimate pursuit like the Internet
What are the seven layers of OSI's seven layer model? What is the role of each layer? This article is clear!
Basic use of day05 MySQL
Unity中实现判断Missing还是Null
Jmeter---Jmeter安装教程
基于JSP实现OA办公系统
【管理篇 / 升级】* 02. 查看升级路径 * FortiGate 防火墙
50道经典计算机网络面试题,你答得上几个?(二)
How many of the 50 classic computer network interview questions can you answer? (top)
TCP连接原理
UGUI源码解析——StencilMaterial
[cann training camp] learning notes - Comparison between diffusion and Gan, dalle2 and Party