基于OpenOCD和DAP的嵌入式远程调试系统研究与设计
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Research and design of embedded remote debugging system based on OpenOCD and DAP
  • 作者:余梓奇 ; 章建雄 ; 马鹏 ; 阎燕山
  • 英文作者:YU Zi-qi;ZHANG Jian-xiong;MA Peng;YAN Yan-shan;The 32nd Research Institute of China Electronics Technology Group Corporation;China Aviation Radio Electronics Research Institute;
  • 关键词:远程调试 ; OpenOCD ; 调试访问端口 ; JTAG仿真器
  • 英文关键词:remote debugging;;OpenOCD;;debug access port;;JTAG emulator
  • 中文刊名:GWDZ
  • 英文刊名:Electronic Design Engineering
  • 机构:中国电子科技集团第三十二研究所;中国航空无线电电子研究所;
  • 出版日期:2017-11-20
  • 出版单位:电子设计工程
  • 年:2017
  • 期:v.25;No.372
  • 语种:中文;
  • 页:GWDZ201722036
  • 页数:5
  • CN:22
  • ISSN:61-1477/TN
  • 分类号:155-159
摘要
为了解决传统调试器与自主可控芯片兼容性不强的问题,文中针对自主设计的一款嵌入式CPU,分析了远程调试的原理,研究并设计了一种基于OpenOCD和DAP(调试访问端口)的远程调试系统。该系统通过OpenOCD向目标芯片发送调试命令,经过JTAG仿真器传给目标芯片的JTAG接口,并通过DAP生成总线事务完成调试操作。经实际应用表明,该系统支持插入断点、单步执行、读写寄存器和存储空间等调试功能,可作为GDB服务程序与GDB集成以实现更强大的调试功能,具有兼容性强,稳定性强,可扩展性好的特点。
        In order to solve the problem of the compatibility between the traditional debugger and selfcontrollable chip. In view of the self-designed embedded CPU,this paper analyzes the principle of remote debugging,researches and designs a remote debugging system based on Open OCD and DAP(debug access port). The system sends the debug command to the target chip through Open OCD,these commands are sent to the JTAG port of the target chip by JTAG emulator and completes the debug operation through DAP generating bus transaction. The experiment and application show that this system supports insertion breakpoints,single-step execution,read or write registers and storage space and other functions,the system also can integrate with GDB as GDB server program to achieve more powerful debugging features,with strong compatibility,strong stability,good scalability.
引文
[1]马艳.基于事件循环机制的嵌入式应用级交叉调试器的研究[D].武汉:华中科技大学,2013.
    [2]Wootton C.Debugging Your Application[C]//Beginning Samsung ARTIK.Apress,2016:325-331.
    [3]黄子晨,李德华.基于Open OCD和JTAG的嵌入式交叉开发环境[J].仪器仪表用户,2012,18(2):470-478.
    [4]Mike Anderson.Using Open OCD JTAG in AndroidKernel Debugging:Making Android Driver Work-(PPT)[C]//Embeded systems conference 2013,San Jose,California,USA:ESC Silicon Valley,2013.
    [5]吴亚杰.基于EJTAG的OCD调试方案的研究与实现[D].青岛:中国海洋大学,2012.
    [6]徐文昌.So C调试跟踪系统的设计与实现[D].西安:西安电子科技大学,2013.
    [7]张鹏,樊晓桠,黄小平.基于总线访问的片上调试方法研究[J].计算机测量与控制,2014(2):510-512,518.
    [8]况阳.支持USB的嵌入式软件远程调试器的设计与实现[D].成都:电子科技大学,2011.
    [9]Beneder R,Kramer M,Brejcha P.A two stageapproach for a cost-effective and versatiledebugging unit and starter platform[C]//Mechatronics and Embedded Systems andApplications(MESA),2012 IEEE/ASME Interna-tional Conference on.IEEE,2012:330-335.
    [10]刘慧.基于SOC嵌入式处理器调试系统的开发与研究[D].武汉:武汉纺织大学,2013.
    [11]Joseph Yiu.ARM Cortex-M3权威指南[M].姚文祥.北京:清华大学出版社,2014.
    [12]Esliger J L,Foley D.Integrated circuit with secureboot from a debug access port and method therefor:U.S.Patent 8,156,317[P].2012-4-10.
    [13]王哲宇.基于Core Sight接口的ARM跨平台调试系统的研究与实现[D].上海:华东师范大学,2015.
    [14]Beneder R.Development of an Open OCDcompatible Debugger for ARM-CMARMJTAG[D].University of Applied Sciences Technikum Wien,2011.
    [15]殷绍剑,雷航,詹瑾瑜.嵌入式远程调试原理研究与实现[J].计算机应用与软件,2014(6):240-243.
    [16]任艳伟.基于acoral操作系统的调试器的研究与设计[D].成都:电子科技大学,2012.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700