【问题标题】:How to set the breakpoint when acessing the memory area(write) on the Keil ARM MDKKeil ARM MDK访问内存区(写)时如何设置断点
【发布时间】:2023-01-07 17:21:05
【问题描述】:

硬故障异常有时会在系统运行期间发生。 因为栈区的LR被一个垃圾数据覆盖了。

所以我想在栈中的LR写入特定数据时设置断点, 那就是当任何特定数据被写入内存中的特定地址时。 (0x12345678写入地址0x20004321时)

我怎样才能在 keil 的 ARM MDK 上做到这一点?

【问题讨论】:

    标签: breakpoints keil


    【解决方案1】:

    您可以将 Breakpoints Window 与表达式一起使用: * ((uint32_t*)0x20004321) == 0x12345678 与访问:

    您也可以写信给命令窗口:BS WRITE * ((uint32_t*)0x20004321) == 0x12345678

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-03
      • 1970-01-01
      • 2010-10-29
      • 2012-04-06
      • 2010-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多