Design and Implement of the ARM JTAG Emulator
- Author
- HuangHaiQuan
- Advisor
- LuoLei , LiuDong
- School
- University of Electronic Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP332 Arithmetic unit and the controller (CPU)
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 23
- Citations
- 0
Abstract
ARM processors are used in embedded eletronical product widely, especially incommunication, industry control, and automatic, which became the major processor inembedded electronical product. As part of the development tool chain, ARM JTAGemulator is the very important to efficiency and difficulty of both hardware andsoftware development and affects product stability and roburst.Now, some JTAG emulators are used in practice. Near all of the high performanceemulator are developed by oversea tool providers, these are too expensive to generaldeveloper, small or tiny company. Some JTAG emulator with low price can’t meet therequirements of larget scale software development. These products don’t support highspeed program downlowd, hardware breakpoint, wachipoint, FLASH programming andetc. This subject focus on the problems mentioned ahead, provide a solution to designand implement the ARM JTAG emulator after study ARM EmbeddedICE technonogy,GDB debugging technology, RSP protocol, μC/OS-II and LwIP and etc. This JTAGemulator is designed base on AT91SAM9260, supporting ARM7and ARM9serialprocessor core and JTAG clock rate programming, with the communication infertaceincluding10/100M auto-adapt Ethernet, USB and RS232. The key points involved inthis subject are described below:1. Debugging theory of ARM JTAG, including TAP controller, EmbeddedICElogic, and boundary scan principle. Then provide the design thought, scheme,and method to ARM JTAG emulator.2. Base on ARM JTAG theory analysis, design requirements and designspecification was provied. AT91SAM9260chip is selected as the processor.This hardware scheme has several good feathures, supporting target JTAGinterface voltage auto-adapt, supporting wide input votage range, supporting10/100M auto-adapt Ethernet interface, RS232serial communication and USB.After the scheme given, some critical schematic designs are given in details.3. ARM JTAG software system is built on μC/OS-II and LwIP, support highspeed download. One high performance JTAG macro instruction process logic was designed and implemented to achieve1Mbytes download speed and JTAGclock rate programming, the static function interface and dynamic running flowdesign about RSP protocol, GDB command parser, JTAG debugging commandand etc are introduced in details.
Table of contents
Abstract 5-7
ABSTRACT 7-11
first chapter 11-17
research purpose and meaning 1.1 of 11-12
1.2 key technology issues and major work chapter arrangements 12-16
1.3 papers 16-17
Chapter ARM JTAG debugging principle analysis 17-32
2.1 boundary scan description 17-18
2.2 TAP controller 18-24
2.3 ARM processor debug architecture 24-28
2.3.1 EMBEDDEDICE logic 24-25
2.3.2 TAP controller instruction 25-26
3.3.3 data register and scan chain 26-27
2.3.4 ARM nuclear status and mode switching 27-28
2.4 ARM7 / 9 core JTAG debugging principle 28-31
2.4 system Status .1 detect kernel 28-29
2.4.2 PC debugging state register 29
2.4.4 debug control registers and debug status register 29 -31
2.5 Summary 31-32
Chapter III emulator hardware design and implementation of 32-41
3.1 AT91SAM9260 processor introduced 32- 33
3.2 AT91SAM9260 -based hardware system design 33-34
3.3 JTAG interface design 34-38
3.4 Ethernet interface design 38-39
3.5 other interface design 39-40
3.6 Summary 40-41
Chapter emulator software design and implementation 41-77
4.1 emulator software overall design 42-46
4.2 ΜC / OS-II operating system migration 46-49
4.3 LWIP protocol stack analysis 49- the control logic micro 60-76
4.5.1 JTAG; 54
4.4 RSP agreement with GDB command parser design design and implementation of nbsp 54-60
4.5 JTAG debug protocol ; nbsp instruction design 60-66
4.5.2 JTAG debug command interface design 66-69
4.5.3 JTAG debug command interface running processes 69-76
4.6 Summary 76-77
Chapter simulator test 77-82
Chapter VI Conclusion 82-83
6.1 this article the main contribution 82
6.2 Prospects for further work 82-83
Thanks 83-84
references 84-86