Research and Implementation of on-Chip Debugging Solution Based on EJTAG
- Author
- WuYaJie
- Advisor
- LiuWeiDong
- School
- Ocean University of China
- Major
- Signal and Information Processing
- Classification
- TN47 LSI,ultra LSI
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 30
- Citations
- 0
Abstract
With the continuous development of China’s integrated circuit technology, moreand more SoC chips,which are researched and developed independently by China,areappearing in the marketplace. The SoC CPU in this paper is one of such chips,and it ismainly used for digital TV,Set-top box equipment,network equipment,storage devicesand consumer electronic products market.The successful research and development ofthis SoC CPU Core indicates that China has a big breakthrough in microprocessordesign fields,and China no longer depends on foreign processors.However, for thisSoC CPU,there are only few manufacturers who choose to use it in their products.If aCPU wishes to be widely used, the development tools of it must be enough powerful.It means that CPU vendor must provide a stable toolchain.In the toolchain,thedebugger plays an especially important role. Because in the design and developmentprocess of the Embedded System, using a highly efficient and stable debugger canhelp to reduce the difficulty of the chip’s development and help programmers toquickly trace the bug,which greatly helps to shorten the development cycle of thechip.However, the research of the On-Chip Debugging technology is still in itsinfancy, at this point, this topic is of the significance.Firstly, this paper descripes the concept of the remote debugging in embeddeddevelopment environment.And secondly, this paper introduces the different kind ofdebugging solutions in current field of Embedded System, for example, there aresoftware simulation debugging solution、software stub debugging solution、ICEdebugging solution and On-Chip Debugging solution.This paper is mainly on theresearch of On-Chip Debugging technology about SoC CPU, so a depth study is madeon this SoC CPU’s architecture, the handling of the debug exception and thememory-mapped when processor is in debug mode. Besides that, this paper alsocarries out a detailed description about the principle of the EJTAG, because this SoCCPU supports the On-Chip Debugging by using the EJTAG in its internal.After studying the hardware knowledge about the On-Chip Debugging, GDB is choosed todo the source-level debugging on the host side. On the basis of research on the GDBremote debugging protocol RSP, this paper implements a debugging agent whichnames gdb server to support the On-Chip Debugging. Accordingly, this paperachieves a low-cost On-Chip Debugging solution which supports the source-leveldebugging.
Table of contents
Summary 5-6
Abstract 6-10
1 Introduction 10-13
1.1 Introduction 10
1.2 Domestic foreign research status background and significance of the research 10-11
1.3 of organizational structure 11
1.4 of this paper 11-13
2 embedded commissioning technical Summary 13-20
2.1 embedded debugging concepts 13
2.2 software debugging programs 13-15
2.2.1 software simulation debugging program 13-14
2.2.2 software debugging stub program 14-15
2.3 hardware debug solution 15-20
2.3.1 ICE debug program 15-17
chip debugging program nbsp 2.3.2 ; 17-20
3 SoC CPU and EJTAG module introduces 20-48
3.1 SoC CPU introduction 20-31
3.1.1 CPU registers introduced 20-28
3.1.2 CPU mode 28-31
3.2 SoC CPU exception processing 31-35
3.2.1 generic exception handling process 32-34
3.2.2 debug exception processing 34-35
3.3 EJTAG debugging framework 35-45
3.3.1 EJTAG TAP controller works 36-40
3.3.2 EJTAG instruction and data registers introduced 40 - 43
3.3.3 access EJTAG instruction and data registers 43-45
3.4 EJTAG debugging process 45-48
4 commissioning agent based SoC CPU design and achieve 48-70
4.1 debugging framework overall architecture 48-49
4.2 parallel module 49-51
4.2.1 EJTAG hardware debugging instrument circuit 49-50
4.2.2 parallel module software 50-51
4.3 EJTAG module 51-54
4.3.1 TAP state control machine 51-53
4.3.2 access EJTAG instruction register 53
4.3.3 access EJTAG data register 53-54
4.4 Server module 54-66
4.4.1 GDB RSP agreement 54-57
realize 4.4.2 debug agent 57-63
4.4.3 access memory 63-64
4.4.4 breakpoint setting 64-65
4.4.5 access to the processor registers 65-66
4.5 command parsing module 66-70
4.5.1 command structure definition 66-67
4.5.2 command scheduler module 67-70
5 summary and Outlook 70-72
5.1 Full Summary 70
5.2 future Work Prospects 70-72
References 72-74
Thanks 74-75
CVs 75
published papers 75
Related dissertations
- Research and Realization of Video Surveillance and Play Based on ARM9Hardware Platform
- The Study of Remote Video Monitor System Baced on ARM
- Design and Implementation of Intelligent Video Surveillance System Based on Embedded Linux
- Video Surveillance System Based on Embedded Technology Research
- Design of Video Monitoring System Based on the Embedded
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Design of Video Surveillance Software Based on Ti Dm6446Processor
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Research on the Indoor Air Monitoring System Based on Embedded Linux
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- Automatic Switcher Based on Embedded System Design and Implementation of Test Platform
- Research on Meteorological Data Acquisition and Processing System
- The Research of the Design and Application for Embedded Remote Terminal Unit
- Design and Implementation of Magnetic Card Detection System Based on Embedded System
- Design of distributed control system based on embedded platform
- Design and Implementation of Car Embedded Systems to Multimedia Intelligent Terminal
- The Research of CANopen Protocol Based on Embedded Systems
- The Research and Design of Smart Home System Based on Zigbee Technology