硬汉嵌入式论坛

 找回密码
 立即注册
查看: 4547|回复: 4
收起左侧

[J-Link] RAM中调试是不限制断点数量的,而Flash中调试有硬件断点和软件断点之分

[复制链接]

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106997
QQ
发表于 2018-2-18 11:45:29 | 显示全部楼层 |阅读模式
地址:https://www.segger.com/products/debug-probes/j-link/technology/flash-breakpoints/
091016_Flash_breakpoints_IQ_magazine.pdf (3.55 MB, 下载次数: 138)

QQ截图20180218113206.png


How Breakpoints Work
There are basically 2 types of breakpoints in a computer system: Hardware breakpoints and software breakpoints. Hardware breakpoints require a dedicated hardware unit for every breakpoint. In other words, the hardware dictates how many hardware breakpoints can be set simultaneously. ARM7, ARM9, and some devices implemented with the Cortex-M0+ cores have 2 breakpoint units (called "watchpoint units" in ARM's documentation), allowing 2 hardware breakpoints to be set. Hardware breakpoints do not require modification of the program code. Software breakpoints are different: The debugger modifies the program and replaces the breakpointed instruction with a special value. Additional software breakpoints do not require additional hardware units in the processor, since instructions are replaced inside the code to indicate the breakpoint. This is a standard procedure that most debuggers are capable of, however, it requires the program to be located in RAM.










回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106997
QQ
 楼主| 发表于 2018-2-18 12:05:04 | 显示全部楼层
2018-02-18_120355.jpg
回复

使用道具 举报

0

主题

84

回帖

84

积分

初级会员

积分
84
发表于 2018-2-18 18:05:26 | 显示全部楼层
过年好啊,过节也不休息吗?
回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106997
QQ
 楼主| 发表于 2018-2-19 00:09:42 | 显示全部楼层
liugang1986 发表于 2018-2-18 18:05
过年好啊,过节也不休息吗?

休息了,差不多休息了5天
回复

使用道具 举报

1

主题

25

回帖

28

积分

新手上路

积分
28
发表于 2019-7-4 15:32:50 | 显示全部楼层
非常感谢。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-13 17:12 , Processed in 0.271074 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表