JTAG Interface (Intro)

578 views
455 views

Published on

Introduction to JTAG Interface for debugging embedded micro-controller and devices.

Published in: Education, Technology, Business
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
578
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

JTAG Interface (Intro)

  1. 1. JTAG Interface Nitesh Bhatia- 200501071 Embedded Systems | DA-IICT | 2009 Joint Test Action Group
  2. 2. Outline !! Background – need for JTAG !! JTAG and Boundary Scan !! Advantages !! Atmel ICE mk-II and gdb !! Real JTAG Applications
  3. 3. Bed of Nails fixture !! PCB testing was done using Bed of Nails in circuit testing.
  4. 4. Past to Future – Testing !! Miniaturization results in loss of test access Yesterday TomorrowToday
  5. 5. Circuit Complexity / Cost !! Increasing integration at chip level complicates controllability. Yesterday Today
  6. 6. JTAG (1149.1 Standard) !! IEEE 1149.1, a standard 5-pin serial protocol that established the details of access to any chip with JTAG port. !! Features: !! Boundary scan testing of ICs !! Debug Embedded devices !! System level debug capability
  7. 7. JTAG – Boundary Scan !! Boundary scan is a methodology allowing complete controllability and observablity of the boundary pins of a JTAG compatible device via software control.
  8. 8. Boundary Scan Principle The top level schematic of test logic defined by IEEE Std 1149.1 includes three key blocks: !! The TAP Controller !! This responds to the control sequences supplied through the test access port (TAP) and generates the clock and control signals required for correct operation of the circuit blocks !! The Instruction Register !! This shift register-based circuit is serially loaded with the instructions that selects an operation to be performed !! The Data Registers !! These are a bank of shift register based circuits.The stimuli required by an operation are serially loaded into the data registers selected by the current instruction. Following execution of the operation, results can be shifted out for examination.
  9. 9. What can it be used for !! The standard defines instructions that can be used to perform !! Functional Tests !! Interconnect Tests !! Built-in self test procedures
  10. 10. Advantages !! Need for physical test points on board is eliminated => simpler board layouts !! Cheap test fixtures !! Reduced time on in-circuit test systems !! Increased use of standard interfaces !! Faster time-to-market
  11. 11. Widespread uses !! A large proportion of high end embedded systems have a JTAG port. !! The PCI bus connector standard contains optional JTAG signals (pins 1-5); PCI-Express contains JTAG signals (pins 5-9).A special JTAG card can be used to re-flash a corrupt BIOS. !! Almost all FPGAs and CPLDs used today can be programmed via the JTAG port.
  12. 12. JTAG Software !! Open Source !! UrJTAG project supports many JTAG tools, processors, and boards. !! OpenOCD project supports various inexpensive JTAG adapters including USB ones based on FT2232 chips, and is mostly used with ARM projects. It provides GDB and telnet interfaces, both from Linux and from MS-Windows. !! Freeware !! Atmel provides AVR Studio on MS-Windows, for AVR8 microcontrollers, and a cross-platform AVR32studio product to support AVR32 systems. !! Xilinx provides lower end FPGA development tools at no cost !! HappyJTAG2 is embedded JTAG solution with FT2232 chip for AVR8 microcontrollers and Atmel AVR Studio on MS-Windows.
  13. 13. Working Source: http://www.corelis.com/products/ScanExpressJET.htm
  14. 14. JTAG ICE mkII and gdb. !! Functions - !! Run !! Stop !! Step !! Write to Registers and memory !! Read from Registers and memory !! Exchange parameters with the JTAG host !! Display CPU status Refer: http://www.youtube.com/watch?v=IwPWq9m0M6w
  15. 15. Real applications !! DesignVerification/Debug !! Provides control and observation of system under test without need for physical access !! Manufacturing Test !! Provides test and diagnostic capabilities of in-circuit test without need/expense of physical access !! System Configuration Maintenance
  16. 16. References !! http://www.inaccessnetworks.com/ian/projects/ianjtag/ jtag-intro/jtag-intro.html !! http://www.embedded.com/story/OEG20021028S0049 !! http://www.corelis.com/products/ScanExpressJET.htm !! http://www.ee.ic.ac.uk/pcheung/teaching/ee3_DSD/ ti_jtag_seminar.pdf
  17. 17. Thankyou !
  18. 18. Extra Slides
  19. 19. Test Access Ports !! The JTAG Test Access Port (TAP) contains four pins that drive the circuit blocks and control the operations specified.The TAP facilitates the serial loading and unloading of instructions and data. !! Four pins of TAP are: !! TMS – Test mode Select !! TCK – Test Clock !! TDI – Test Data Input !! TDO – Test Data Output
  20. 20. The function of each TAP pin is as follows: !! TCK- this pin is the JTAG test clock. It sequences the TAP controller as well as all of the JTAG registers !! TMS – this pin is the mode input signal to the TAP Controller.The stare of TMS at the rising if TCK determines the sequence of states for the TAP controller. !! TDI – this pin is the serial data input to all JTAG instruction and data registers.TDI is sampled into the JTAG registers on the rising edge of TCK. !! TDO - this pin is serial data output for all JTAG instruction and data registers.TDO changes state on the falling edge of TCK and only active during shifting of data through device.This pin is three-stated at all times.
  21. 21. SECONS JTAG TESTER Source: http://www.jtagtest.com/images/jtagtest_linux.png

×