
Debug, Programming, Test Access and Instrument Control
JTAG, boundary scan, SWD, CoreSight, RISC-V debug, bootloaders and SCPI/GPIB.
- ~460
- pages planned
- 31
- protocols
- Wave 1
- release wave
- —
- chapters outlined
What this book covers
The scope of Book 6
From the series plan. Underlined names are Tier A protocols (several chapters), plain names Tier B (a full chapter), italic names Tier C (a compact section); bold labels group the topics.
- JTAG / IEEE 1149.1: the TAP state machine, boundary scan, BSDL, board test
- other IEEE test standards: 1149.4, 1149.6, 1149.7 (cJTAG), IEEE 1500, IEEE 1687 (IJTAG), IEEE 1838
- Arm SWD; SWO/ITM; CoreSight (DAP, APs, ETM, CTI)
- RISC-V Debug (DM, DMI, DTM, trace); Nexus 5001
- debugger links: GDB Remote Serial Protocol, CMSIS-DAP, OpenOCD
- programming interfaces: AVR ISP/PDI/UPDI, STM8 SWIM, PIC ICSP
- bootloader protocols: STM32 system bootloader, ESP32 serial, USB DFU
- FPGA configuration interfaces (SPI, serial and parallel modes)
- instrument control: SCPI, GPIB (IEEE 488), VISA, USBTMC, LXI, PXI/PXIe
- an overview of scan, ATPG and BIST (full DFT is in Silicon Library Book 15)
Labs: JTAG TAP RTL with a boundary-scan chain; SWD packet decode; OpenOCD driving a simulated RISC-V core; UPDI decode; SCPI scripts against a simulated instrument
Contents
Chapters are planned when writing starts
The scope above is this book's brief in the series plan. Its chapter-by-chapter outline is written when the book's turn comes, and appears here.
31 protocols at home here
Protocols this book teaches
From the series register. This book is each one's home: the place it is taught in full. Other books only use it.
| Protocol | Depth | Governing spec |
|---|---|---|
| CoreSightArm CoreSight debug and trace architecture | Tier A | Arm IHI 0029 (CoreSight Architecture); IHI 0031 (ADIv5) |
| IEEE 1149.1 (JTAG)Standard Test Access Port and Boundary-Scan Architecture | Tier A | IEEE 1149.1-2013 |
| IEEE 1687 (IJTAG)Internal JTAG: access and control of on-chip instruments | Tier A | IEEE 1687-2014 |
| SCPIStandard Commands for Programmable Instruments | Tier A | IVI Foundation SCPI-99 |
| SWDArm Serial Wire Debug | Tier A | Arm IHI 0031 (ADIv5) / IHI 0074 (ADIv6) |
| AVR ISPMicrochip AVR in-system programming (SPI) | Tier B | Microchip AVR910 application note / device datasheets |
| BSDLBoundary Scan Description Language | Tier B | IEEE 1149.1-2013 Annex B |
| CMSIS-DAPArm CMSIS Debug Access Port firmware protocol | Tier B | Arm CMSIS-DAP documentation |
| ESP32 serial bootloaderEspressif ROM serial download protocol | Tier B | Espressif esptool serial protocol documentation |
| FPGA configuration interfacesSPI, serial and parallel (SelectMAP-type) FPGA configuration | Tier B | AMD UG570 / Intel / Lattice configuration user guides |
| GDB Remote Serial ProtocolGNU debugger remote protocol | Tier B | GNU GDB manual, appendix "Remote Protocol" |
| GPIB (IEEE 488)General Purpose Interface Bus | Tier B | IEEE 488.1 / 488.2 |
| IEEE 1149.4Mixed-Signal Test Bus | Tier B | IEEE 1149.4-2010 |
| IEEE 1149.6Boundary scan for AC-coupled and differential nets | Tier B | IEEE 1149.6-2015 |
| IEEE 1149.7 (cJTAG)Reduced-pin and enhanced-functionality test access port | Tier B | IEEE 1149.7-2022 |
| IEEE 1500Embedded Core Test standard (wrapper) | Tier B | IEEE 1500-2022 |
| IEEE 1838Test access architecture for 3D stacked ICs | Tier B | IEEE 1838-2019 |
| LXILAN eXtensions for Instrumentation | Tier B | LXI Consortium LXI Device Specification |
| Nexus 5001IEEE-ISTO 5001 embedded debug interface | Tier B | IEEE-ISTO 5001-2012 |
| PDIMicrochip AVR Program and Debug Interface (XMEGA) | Tier B | Microchip XMEGA AU manual (PDI chapter) |
| PIC ICSPMicrochip In-Circuit Serial Programming | Tier B | Microchip device programming specifications |
| PXI / PXIePCI / PCI Express eXtensions for Instrumentation | Tier B | PXI Systems Alliance PXI-5 Express specification |
| RISC-V DebugRISC-V External Debug Support (DM, DTM, trace) | Tier B | RISC-V External Debug Support v1.0 |
| STM32 system bootloaderST STM32 ROM bootloader protocols (USART, I²C, SPI, CAN, USB DFU) | Tier B | ST AN2606, AN3155 (USART protocol) |
| SWIMST STM8 Single Wire Interface Module | Tier B | ST UM0470 (STM8 SWIM protocol) |
| SWO / ITMArm Serial Wire Output and Instrumentation Trace Macrocell | Tier B | Arm ARMv7-M / ARMv8-M Architecture Reference Manual (ITM, TPIU) |
| UPDIMicrochip Unified Program and Debug Interface | Tier B | Microchip tinyAVR 0/1 and AVR Dx datasheets (UPDI chapter) |
| USB DFUUSB Device Firmware Upgrade class | Tier B | USB-IF Device Class Specification for DFU 1.1 |
| USBTMCUSB Test and Measurement Class | Tier B | USB-IF USBTMC 1.0 (+ USB488 subclass) |
| VISAVirtual Instrument Software Architecture | Tier B | IVI Foundation VISA specifications (IVI-4.x) |
| RISC-V DMIRISC-V Debug Module Interface | Tier C | RISC-V External Debug Support v1.0 (DMI) |
Short notes (standards often listed as protocols): ATPG, BIST, DFT, IEEE 1149 family, LBIST, MBIST, OpenOCD, Scan chain.
Also used here, taught in full elsewhere
Study paths
Book 6 is on 2 career paths
Board-level & embedded
Book 2PlannedUART, RS-232, RS-422 and RS-485
~340 pages planned · 13 protocols
Book 3PlannedSPI and Its Family
~360 pages planned · 15 protocols
Book 4PlannedI²C, SMBus, PMBus and I3C
~430 pages planned · 10 protocols
Book 5PlannedEmbedded I/O, Sensor and Single-Wire Protocols
~380 pages planned · 19 protocols