【ARM Coresight OpenOCD 系列 5 -- arp_examine 使用介绍】

文章目录

    • [OpenOCD arp_examine 使用](#OpenOCD arp_examine 使用)

OpenOCD arp_examine 使用

因为我们很多时候运行 Openocd 的时候有些 core 还没有启动, 所以最好在配置脚本中添加 -defer-examine这个参数, 如下:

powershell 复制代码
#cortex-m33
target create ${_CHIPNAME}.m33 cortex_m -dap ${_CHIPNAME}.dap -ap-num 0x6B240000 -dbgbase 0xE000E000 -defer-examine

添加完之后,在启动Openocd之后:

powershell 复制代码
> Connection closed by foreign host.
zhugong@:~/workbase/openocd/$ telnet 127.0.0.1 8888
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> targets
    TargetName         Type       Endian TapName            State
--  ------------------ ---------- ------ ------------------ ------------
 0  debug.a53.0        aarch64    little debug.cpu          examine deferred
 1  debug.a53.1        aarch64    little debug.cpu          examine deferred
 2  debug.a53.2        aarch64    little debug.cpu          examine deferred
 3  debug.a53.3        aarch64    little debug.cpu          examine deferred
 4  debug.a78.0        aarch64    little debug.cpu          examine deferred
 5  debug.a78.1        aarch64    little debug.cpu          examine deferred
 6  debug.a78.2        aarch64    little debug.cpu          examine deferred
 7  debug.a78.3        aarch64    little debug.cpu          examine deferred
 8  debug.m33          cortex_m   little debug.cpu          examine deferred
 9  debug.m33_ahb      mem_ap     little debug.cpu          running

在使用某个AP的时候需要先手动做arp_examine,否则会报错Target not examined yet,如下图所示:

powershell 复制代码
> targets debug.axi
> mdw 0x88000000 4
Target not examined yet

添加过 -defer-examine参数之后可以使用下面类似的命令 enable 这个AP:

powershell 复制代码
> debug.axi arp_examine
> debug.axi mdw 0x80000000 4
0x80000000: 00000000 00000000 00000000 00000000
相关推荐
satadriver2 天前
Qemu arm操作系统开发环境
arm开发
待什么青丝3 天前
【TMS570LC4357】之相关驱动开发学习记录1
c语言·arm开发·驱动开发·学习
南玖yy3 天前
x86 汇编逻辑运算全解析:从【位操作】到实际应用(AND,OR,NOT,XOR,TEST)
开发语言·汇编·arm开发·后端·架构·策略模式
菜只因C5 天前
嵌入式系统:从技术原理到未来趋势(驱动程序篇)
arm开发
!chen7 天前
鲲鹏Arm+麒麟V10 K8s 离线部署教程
java·arm开发·kubernetes
ScilogyHunter7 天前
ARM P15协处理器指令详解:架构、编程与应用实践
arm开发·协处理器指令·cp15
apolloyhl8 天前
1-Wire 一线式总线:从原理到实战,玩转 DS18B20 温度采集
arm开发·stm32·单片机·嵌入式硬件
二进制coder8 天前
芯片:数字时代的算力引擎——鲲鹏、升腾、海光、Intel 全景解析
arm开发·架构·硬件架构
荆楚闲人8 天前
Keil MDK5.37或更高版本不再预装ARM Compiler Version5导致编译错误的解决方法
arm开发
MonKingWD8 天前
【Redis原理】四万字总结Redis网络模型的全部概念
网络·arm开发·redis