基于JTAG的在系统编程和硬件调试研究与应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
JTAG是一种重要的调试架构,已被电子电器工程师协会收录并作为集成电路设计标准,被命名为IEEE Std.1149.1。JTAG在嵌入式系统开发过程中扮演越来越重要角色。在没有任何初始化程序的目标系统上,如何下载程序到目标开发系统的存储器中,唯一方便的方法是用JTAG进行在系统编程,诸如bootloader之类的初始加载程序都是通过JTAG下载的。由于JTAG设计的巧妙,能通过它实现调试功能,在进行软件开发时,软件仿真和调试不能满足实时的需要,基于JTAG的硬件仿真作用显得优为突出。所以,对基于JTAG的在系统编程和硬件仿真的研究具有十分现实的意义。
     在本文中,首先详细介绍JTAG的硬件结构及其工作原理,因为它是后续工作的基础。
     接着介绍主机与JTAG硬件通讯渠道的设计考虑和研究。在硬件架构确定的基础上,给出了控制JTAG工作的软件实现。
     随后,以一个具体的目标系统展示了本毕业设计主题之一:基于JTAG的在系统编程,完整地给出其软件实现。
     最后,对Intel(?)XScale~(TM)核的调试架构作详细的介绍,并对运行在Intel(?)XScale~(TM)核上的调试代理程序和运行在主机上的调试器的设计做了充分的考虑,以使二者严格同步通讯。在此基础上,通过JTAG访问CPU寄存器和存储器得以实现,也可直接下载调试代码进入指令Cache,而实现硬件调试。
JTAG is a important type of debug architectures, which has been registered as one of IC designing specifications named IEEE Std.1149.1. JTAG is playing a important role at the embedded-system development. In the target system without any initialization program, the download of the initialization code to its processor is usually achieved through the in-system program, and the initialization code, such as bootloader, is downloaded through JTAG Due to the advisable design, the methods of using JTAG are extended. When developing embedded-system software, because for the default of software emulation and debug hardware emulation based on JTAG is highlighted. So, the research and application of the in-system program and hardware emulation based on JTAG indicate its important meanings.In this paper, firstly, the architecture and principle of JTAG are introduced in detail that the following works are carried on without it.Secondly, the design of the communication channel between Host and JTAG port is token account. Above all, the software achievements of controlling and running JTAG for some key technology are provided.Third, the in-system program based on JTAG is lied out which is one of the studies in this paper. Perspicuously, the software achievements are still keys.Lastly, the debug architecture about Intel(?)XScale~(TM)core is introduced in some degree. In addition, the debug handler which running on the target CPU and the debugger which running on Host are thought better of ,so that they can assort better with each other. When the debugger and debug handler can communicate synchronously by JTAG hardware, accessing CPU registers and dynamically downloading code into instruction Caches are implemented, the hardware debug is achieved.
引文
[1] 潭浩强 编著C程序设计 北京 清华大学出版社 2000
    [2] (美)Bruce Eckel著C++编程思想 北京 机械工业出版社 2002.8
    [3] (美)Barry B.Brey著 陈谊译Intel系列微处理器结构、编程和接口技术大全—80X86、Pentium and Pentium Pro 北京 机械工业出版社 1998.1
    [4] 侯俊杰 著 深入浅出MFC(第二版) 武汉 华中科技大学出版社 2005.5
    [5] 杜春雷 编著 ARM体系结构与编程 北京清华大学出版社 2004.4
    [6] ARM公司ARM Architecture Reference Manual 2000.6
    [7] ARM公司ARM7TDMI (rev3) Technology Reference Manual 2001.4
    [8] 陈章龙 涂时亮 主编 嵌入式系统—IntelstrongARM结构与开发 北京 北京航空航天大学出版社 2003.4
    [9] Intel公司Intel(?)StrongARM*SA-1110 Microprocessor Developer's Manual 2002.6
    [10] IEEE Std 1149.1-2001(revision of IEEE Std 1149.1-1991) Test Technology Standards Committee of IEEE Computer Society, 2001
    [11] Intel(?)PXA255 Processor Developer's Mannual http://www.intel.com/design/pca/applicationsprocessors/manuals/278693.htm,2004
    [12] Flash Memory Programer(JFlash),Versionl. 2 http://www.intel.com/design/strong/swsup/downloads/SA1110JFlashKit_V12.htm,2000
    [13] S29AL016M Data Sheet. http://www.spansion.com/products/S29AL016M.html#datasheet,2004
    [14] PXA255_bsdl_a0_v1_0.txt. http://www.intel.com/design/pca/applicationsprocessors/bsdl/pxa255_bsdl_a0_v1_0. htm,2002
    [15] ARM公司THE ARM7TDMI Debug Architecture,1995
    [16] Intel公司Intel(?)XScale CoreDeveloper's Manual, 2004.1
    [17] ARM公司Embedded Trace Buffer (Rev0) Technical Reference Manual, 2002.2
    [18] ARM公司 ARM(?) Developer SuiteVersion 1.2 Assembler Guide, 2001.10
    [19] ARM公司ARM(?) Developer Suite Version 1.2 Developer Guide, 2001.10
    [20] ARM(?) Developer Suite Version 1.2 CodeWarrior(?) IDE Guide http://www.arm.com/pdfs/DDI0242B_ETB_R0.pdf,2001.10
    [21] ETM10(Rev0) Technical Reference Manual http://www.arm.com/pdfs/DDI0206A_ETM10_TRM.pdf,2001.7

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

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

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