The BreakAccess command allows you to define an access breakpoint using an address range.
Syntax
Description
BA READ exp, len, cnt, "cmd"
Set a read access breakpoint.
BA WRITE exp, len, cnt, "cmd"
Set a write access breakpoint.
BA READWRITE exp, len, cnt, "cmd"
Set a read/write access breakpoint.
len is an expression that specifies the memory range in which the breakpoint triggers.
BreakAccess inherits the features of the super-set command BreakSet.
Note
When an Access Breakpoint (read or write) is set to a peripheral register (SFR) in the Simulator, the breakpoint might trigger even though the application did not access the peripheral register. This happens because the µVision Simulator makes no difference between application-driven and Simulator-internal accesses.
Access Breakpoints are sometimes called Watchpoints. Watchpoints are different from watch expressions used in a Watch window. To define watch expressions, use the command WatchSet.
请问有具体参考的操作手法么?
谢谢提醒哈!找到官方的支持文档了
http://www.keil.com/support/man/docs/uv4/uv4_cm_breakaccess.htm
评分
查看全部评分
int main()
{
}
在main()函数外部定义,这样试试,应该不会被无故修改
都是定义的全局变量,定义的一个结构体,