【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
相关推荐
代码游侠6 天前
STM32开发——基础外设
linux·运维·arm开发·stm32·单片机·嵌入式硬件·学习
代码游侠6 天前
Linux驱动复习——驱动
linux·运维·arm开发·笔记·学习
古译汉书7 天前
【IoT死磕系列】Day 6:工业控制底层大动脉—CAN总线
linux·网络·arm开发·单片机·物联网·tcp/ip
姜太公钓鲸2337 天前
STM32是ST公司基于ARM Cortex-M内核开发的32位微控制器。上述文字中的内核是什么意思?作用是什么?
arm开发·stm32·嵌入式硬件
日更嵌入式的打工仔7 天前
FIQ 与 IRQ
arm开发·笔记
The️7 天前
STM32-FreeRTOS操作系统-软件定时器
arm开发·stm32·单片机·嵌入式硬件·mcu·c#
szxinmai主板定制专家7 天前
RK3588 8个USB工控解决方案,适用于机器视觉,工业互联等
arm开发·人工智能·fpga开发
我在人间贩卖青春7 天前
ARM编程模型
arm开发·arm工作模式
安全二次方security²8 天前
【CVE-2025-0647】ARM CPU漏洞安全通告
arm开发·安全·cve-2025-0647·tlbi·cpp rctx 指令·c1-ultra·虚拟化漏洞
道亦无名8 天前
armBitRevIndexTable1024
arm开发