工具准备

解析adsp可以使用两种方式,一种是QCAP,一种是crashman。本偏着重记录crashman的使用方法

  1. crashman工具位于源码目录:

ADSP.VT.5.4.2.c1/adsp_proc/crashman/

  1. 安装python环境

    python版本要求python3版本

    python --version
    
    C:\Users\liu>python --version
    Python 3.13.3

  2. 安装perl工具

    https://strawberryperl.com/releases.html

    # 检测安装成功
    perl -v
    
    This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x64-multi-thread
    
    Copyright 1987-2011, Larry Wall
    
    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.
    
    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl".  If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.

日志准备

解析需要三个部分

  1. fulldump中的DDRCS0_0.BIN

  2. bp symbols

  3. adsp 源码

crashman解析

python adspcrashman.py -t strait -d /d/WorkSpace/O19/Port_COM132/DDRCS0_0.BIN  -o /d/WorkSpace/O19/Port_COM132/output_adsp -b /d/WorkSpace/O19/adsp_proc -e /d/WorkSpace/O19/spring-symbols-bp-OS2.0.250617.1.VOUCNXM-ad40141a38/ADSP.VT.5.4.2.c1/adsp_proc/build/ms

解析过程中会自动打开trace32

ONEMORE集成工具

目前我开发的ONEMORE集成工具中已经在插件市场中上架了adsp crash解析工具

备注:在安装插件前,也需要安装基础工具包,这个基础工具包是一切插件的基础!

插件都安装完成后,按照提示重新启动软件!

按照工具选项卡中的选项填写:

然后点击运行即可进行解析。