Research and Implementation of Embedded cross- debugging techniques
- Author
- WeiYong
- Advisor
- SangZuo
- School
- University of Electronic Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 445
- Citations
- 22
- Embedded Linux
- Cross-debugging
- Kernel-level debug agent
- Application-level debug agent
- JTAG - debugger
Abstract
With the rapid development of embedded systems, embedded systems development tools in the development process played an increasingly prominent role, and related research, and technology is constantly updated. The embedded cross debugger is embedded systems developers to use most of the tools, the longest tool used throughout the development cycle. Track to have a traditional debugger breakpoints, variable inquiries and other basic functions, you must also have remote, remote debugging control, or even part of the virtual machine function, leading to the complexity of the cross-debugging techniques to achieve far higher than traditional debugging device. This article begins with a brief description of the embedded software development process, reviewed the course of development of the embedded cross-debugging techniques. Then analyzes the entire frame and the core of the debugger, to show debugger theory and design ideas to take this to the reader. Then the paper introduces the concept of a debug agent, starting from the agent of kernel-level and application-level agent both to study respectively, compared to the ways and means of the two agents technology, and debugger and agents in key processes, such as the execution of breakpoints , process / thread control, target package, kernel module loading elaborate, and finally on the embedded Linux system is designed and implemented a kernel-level and application-level debug agent. In addition, the JTAG debugger for ARM7 series CPU corresponding depth study of to combine ARM-ICE, Flash characteristics of the target machine package framework for multi-chip Flash support framework, and finally designed and implemented JTAG hardware level debugging device-JTAG-Debugger. The entire cross-debugger using a modular and hierarchical design, powerful, the target Flash package, high portability, scalability, and able to meet the special needs of embedded systems development. Finally, as one of the areas of the application of research findings, complete cross debugger as an important system development tools, successfully applied to the State 863 Fund - for intelligent terminal embedded Linux development platform on top. The embedded development research field is the development of real-time, distributed, SOC direction, a lot of new research questions and the direction of the cross-debugging techniques. This article is trying to cover all aspects of its design and implementation, but due to the complexity of the cross-debugger, a large system, difficult, there are still some of these research areas have time to be involved hope that the follow-up study in these areas go deep.
Table of contents
Abstract 4-5
Abstract 5-9
first chapter 9-16
1.1 Basic concepts and terminology 9 - 10
1.1.1 cross-debugging concepts 9-10
1.2 Debugging Techniques Development Review and Trend 10-13
1.2.1 Crash and Burn 11
1.2.2 ROM Monitor 11-12
1.2.3 ROM Emulator 12-13
1.2.4 Simulator 13
1.3 research background 13-14
1.4 content of this study 14-15
1.5 This chapter arrangements 15-16
second Zhang embedded cross-debugging principle 16-25
2.1 embedded software cross-development environment 16-20
2.1.1 embedded cross-debugging during development 16 - 18
2.1.2 embedded cross-compiler environment 18-20
2.1.2.1 cross-compiler configuration process 19-20
2.2 hardware support under the principle of cross-debugging 20-24
2.2.1 BDM debugging (background debug mode) Overview 20-21
2.2.2 BDM BDM hardware and protocol 21-22
2.2.3 real-time online simulation system ICE (In-Circuit Emulator) 22-23
2.2.4 On Chip Debugging 23-24
2.3 Summary 24-25
Chapter cross debugger overall design framework and core technology 25-46
3.1 debugger overall design 25-30
3.1.1 host system design 26-27
3.1.2 target system design 27-29
3.1.3 Remote Debug Protocol 29-30
3.2 target debug agent classification and function 30
3.3 cross debugger core technology 30-36
3.3.1 ELF file format and debugging information indicates 31-32
3.3.2 ELF file important part 32-34
3.3.3 ELF file relocation realization 34-36
3.4 ELF file debugging information indicates 36-40
3.4.1 debugging information generation process 36
3.4.2 stabs debugging information representation format 36-39
3.4.3 ELF object file. stab section 39-40
3.5 debugger for debugging information processing analysis 40-45
3.5.1 BFD library support and the core structure 40-43
3.5.2 Debugging functions to achieve critical 43-45
3.6 Summary 45-46
Chapter kernel-level Design and implementation of a debug agent 46-61
4.1 kernel-level debugging concepts? principle 46
4.2 Linux kernel-level debugging of applications 46-49 < br /> 4.2.1 Debugging Linux kernel 46-47
4.2.2 debug loadable modules 47-49
4.3 Linux kernel-level debugging mechanism analysis of several 49-53
4.3.1 Debugging with print news 49-50
4.3.2 by querying debugging 50-51
4.3.3 By monitoring debugging 51-52
4.3.4 Oops analysis 52-53
4.4 kernel-level debugging proxy design 53-55
4.4.1 kernel-level debugging agent system architecture 53-55
4.5 kernel-level debugging proxy implement 55-60
4.5.1 Debugging Proxy initialization module 55-57
4.5.2 Interrupt Processing Module Implementation 57
4.5.3 command processing module implementation 57-59
4.5.4 Other functions processing module to achieve 59 -60
4.5.5 debug communication module implementation 60
4.5.6 Interface Module Implementation 60
4.6 Summary 60-61
CHAPTER application-level debug agent design and implementation 61-80
5.1 Linux-based application-level debugging method analyzes several 61-65
5.1.1 System calling ptrace implementation principle 61-64
5.1.2 proc file system implementation debugging 64-65
5.2 application-level debug agent designed 65-69 < br /> 5.2.1 application-level debug agent structure design 66-67
5.2.2 Debugging Proxy important data structure 67-69
5.3 application-level debug agent achieve 69-79
5.4 Summary 79-80
Chapter JTAG interface hardware-based debugging 80-103
6.1 hardware-based debugging Principles and classification 80-81
6.1.1 real-time online simulation system ICE (In-Circuit Emulator) 80-81
6.2 JTAG mode principles and interface 81-86
6.2.1 JTAG interface to the internal structure of 81-82
6.2.2 JTAG pin definitions 82-84
6.2.3 TAP control the conversion Figure 84-85
6.2.4 JTAG registers scanning 85
6.2.5 JTAG Flash programming hierarchical graph 85-86
6.3 ARM7TDMI chip in the design of hardware debugging 86-87
6.4 JTAG debugger structure 87-88
6.5 ARM7TDMI various debugging operations to achieve 88-102 < br /> 6.5.1 ARM series target machine module 88-92
6.5.2 ARM7TDMI target machine operating functions are implemented 92-96
6.5.3 on Flash chips The support section 96-98
6.5.4 command parsing part of the implementation 98-102
6.6 Summary 102-103
Chapter Summary and Prospect 103-105
7.1 and features the work done papers 103
7.2 Problems and shortcomings 103-104
7.3 for further research directions and recommendations 104-105
References 105-107
Thanks 107-108
resume, during the study period and the results of research published Papers 108
1. biographical 108
2. Postgraduate Project during 108
3. Papers 108 < br /> 4. Postgraduate Awards during 108
Related dissertations
- The Research and Design of Embedded Mobile Image Monitoring System Based on ARM
- Design and Implementation of Network Video Monitoring and Alarm System Based on Embedded Linux
- Design and Implementation of Terminal for Snowflakes Beef Carcass Quality Measurement System Based on Embedded and Machine Vision
- Research and Design of Harmonic Detecting Device Based on ARM9
- The Design and Application of Network Measurement and Control Platform Based on Embedded WEB Service
- Development of Small Smart Controller Software Technology Based on ARM9
- Design of the Paper Quality Control System Based on Industrial Ethernet
- The Research of Embeded Intelligent Household Based on ARM
- Research on Intelligent Home Furnishing system based on Android
- Research and Development of Intelligent Board Based on Multi-sensor Fusion
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- EJTAG Debugging in Loongson3A System
- Design and Implementation of Chinese Handwritten Input Method Based on ARM9and Qt
- The Design and Implementation of Electronic License Plate Recognition System Based on Embedded Linux
- The Research and Design of Embedded Linux Based on ST-E9500
- Research of Embedded Linux Device Drivers Concurrency Control
- Research and design of Beidou navigation terminal based on ARM+FPGA
- Designing and implement of terminal display and control of radar based on Embedded System
- The Design of Embedded Video Monitoring Terminal Based on3G Technology