Biography
Enrollment Date: 2010
Graduation Date:2013
Degree:M.S.
Defense Date:2005.12.20
Advisors:Chun Zhang
Department:Institute of Microelectronics,Tsinghua University
Title of Dissertation/Thesis:Design and Implementation of an on-line debug system based on JTAG interface
Abstract:
This article designs and implements a microcontroller circuit applied in the capsule gastroscopy communication baseband chip and an on-line debug system to debug the microcontroller. This paper analyzes the characteristics and types of embedded system debugging, compares the advantages and disadvantages of the various debug mode, selects JTAG debug mode as the debug mode of on-line debug system. The on-line debug system consists of three parts of the target system, the debug host and the on-line debugger as the protocol processor. The debug host achieve debugging features of the target system through on-line debugger. Then, this paper designs a microcontroller that integrate the 8-Bit 8051 IP core, the hardware bootloader storage module, and the JTAG interface on-chip-debug module for the control functional requirements of the communication baseband chip. The chip functional verification in RTL and FPGA platform has been finished and a full set of ASIC flow including digital backend, tape-out also has been finished. Next, the debug host system based on Keil uVision 4 integrated development environment is designed by the development of a dedicated dynamic link library. Lastly, the on-line debugger hardware and software system is desgned by using LPC2148 microcontroller chip as the main logical processing chip.The online debugging system design functions divided mainly consider three factors: the debug host owns more powerful data processing capability, the on-line debugger owns less data processing capability, the communication speed between the two parts is limited. After comprehensive analysis of the three factors, the overall system design is determined: the debug host issue the abstract debugging commands to the online debugger through the USB port, the on-line debugger change the commands into specific JTAG debug signal, the target system implements debug functions and sent back the results after receiving the debug signal.Debug host and on-line debugger software system is designed with the idea of hierarchical design, in order to increase the system reusability and reduce the difficulty of the second development. The debug host software is divided into AGDI interface function layer, debug command conversion layer and USB communication layer. The on-line debugger firmware is divide into host communication layer, JTAG timing generation layer and GPIO driver layer. The debug commands issued from debug host is programmed into JTAG signals by LPC2148 and send to the target chip.The test results of the microcontroller circuit design after tape-out show that the circuit functions meet the design requirements. The on-line debug functions that designed and implemented in this paper are verified on Xlinx FPGA platform. All the basic debugging features are achieved, the debugging speed is significantly superior to the traditional debug system, and the debug system cost is very low.