DAP, JTAG, and Boundary Scan

DAP, JTAG, and Boundary Scan

DAP and JTAG There are various ways to connect to the Debug Access Port (DAP), which differ in cost, invasiveness, and security. The DAP allows access to the core within the chip, which is typically the first to boot or is a dedicated microprocessor used for managing chip boot, debugging, and initializing DVFS and DRAM … Read more

In-Depth JTAG Boundary Scan: Hardcore Techniques for Embedded Testing

In-Depth JTAG Boundary Scan: Hardcore Techniques for Embedded Testing

Hello everyone, welcome to <span>LiXin Embedded</span>. Today, let’s talk about JTAG boundary scan. This tool is a powerful means for testing PCB interconnections and internal chip logic, defined in the IEEE 1149.1 standard. If you haven’t read the first two articles in this series, I recommend going back to catch up on the basics of … Read more

FPGA Not Loading Program from Flash When Connected to JTAG Downloader

FPGA Not Loading Program from Flash When Connected to JTAG Downloader

Recently, many people in the group have encountered the above situation, which has been quite puzzling. I had never faced such a situation before. If it were a common issue, there would surely be feedback on the official website. If it is a very specific case, then it can only be treated as a bug. … Read more

FPGA Hardware Design (Part 7) – USB to JTAG Circuit

FPGA Hardware Design (Part 7) - USB to JTAG Circuit

Introduction: JTAG stands for Joint Test Action Group, which is commonly referred to in the IEEE standard 1149.1 as the Standard Test Access Port and Boundary Scan Architecture. Its functionality is powerful, but for engineers engaged in embedded development, the most frequently used feature is programming chips, which typically requires a dedicated emulator. This article … Read more

A Simple Method to Quickly Read Internal Programs of Chips Using JLink

A Simple Method to Quickly Read Internal Programs of Chips Using JLink

Recently, during mass production of our company’s products, we discovered several boards with abnormal boot internal information, which prevented normal booting into the APP main program. Preliminary analysis suggested that the factory production line mistakenly flashed the boot program of other products. To verify this judgment, we need to read the internal program of the … Read more

Analysis of JTAG Principles and Its Application in ATE DFT Testing

Analysis of JTAG Principles and Its Application in ATE DFT Testing

JTAG (Joint Test Action Group) is an international standard testing protocol (IEEE 1149.1) primarily used for testing, debugging, and programming chips, PCBs, and systems. Through a dedicated hardware interface and protocol, it provides non-intrusive access to the internal circuits of chips. The JTAG protocol is widely used in embedded development, hardware verification, and fault diagnosis. … Read more

JTAG Debugging – GDB Example

JTAG Debugging - GDB Example

OpenOCD is used to drive the JTAG interface, typically in conjunction with GDB for code execution debugging. The usage of GDB is fundamentally no different from its use in other contexts.Some debugging techniques for GDB: Advanced Usage of GDBThere are two ways to start GDB and interact with OpenOCD: GDB communicates with OpenOCD over TCP … Read more

JTAG Debugging – Infineon Aurix Chips

JTAG Debugging - Infineon Aurix Chips

Infineon AURIX TC3xx (or TC2xx) series chips include the corresponding Triboard development board, and the official JTAG hardware box is miniWiggler, which also contains the FTDI USB2JTAG chip:Although it is an FTDI chip, it does not work with the open-source openocd, which is used by the FlysWattery hardware box. The corresponding software provided by Infineon … Read more

Analysis of ARM JTAG Debugging Architecture: Components and Underlying Logic

Analysis of ARM JTAG Debugging Architecture: Components and Underlying Logic

JTAG is the core interface for debugging ARM chips, and its architecture achieves instruction transparency from the host to the chip through a layered design. This article will focus on the ARM JTAG debugging architecture, clarifying its key components at the physical and protocol layers. 1. Three Major Modules of ARM JTAG Debugging Structure ① … Read more

JTAG Debugging with OpenOCD

JTAG Debugging with OpenOCD

OCD stands forOn-Chip Debugger, which is on-chip debugging. OpenOCD is an open-source JTAG debugging tool that operates as follows:The following diagram shows a physical connection, where the debugging target is theIntel Galileo Board, and the hardware box is the Flyswatter. The small board labeled 4 is theARM-JTAG-20-10 Adapter:When starting OpenOCD, a configuration file is passed … Read more