Skip to content
Book 6 cover: Debug, Programming, Test Access and Instrument Control
Book 6·Board-level & embeddedPlanned

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

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

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.

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.

ProtocolDepthGoverning spec
CoreSightArm CoreSight debug and trace architectureTier AArm IHI 0029 (CoreSight Architecture); IHI 0031 (ADIv5)
IEEE 1149.1 (JTAG)Standard Test Access Port and Boundary-Scan ArchitectureTier AIEEE 1149.1-2013
IEEE 1687 (IJTAG)Internal JTAG: access and control of on-chip instrumentsTier AIEEE 1687-2014
SCPIStandard Commands for Programmable InstrumentsTier AIVI Foundation SCPI-99
SWDArm Serial Wire DebugTier AArm IHI 0031 (ADIv5) / IHI 0074 (ADIv6)
AVR ISPMicrochip AVR in-system programming (SPI)Tier BMicrochip AVR910 application note / device datasheets
BSDLBoundary Scan Description LanguageTier BIEEE 1149.1-2013 Annex B
CMSIS-DAPArm CMSIS Debug Access Port firmware protocolTier BArm CMSIS-DAP documentation
ESP32 serial bootloaderEspressif ROM serial download protocolTier BEspressif esptool serial protocol documentation
FPGA configuration interfacesSPI, serial and parallel (SelectMAP-type) FPGA configurationTier BAMD UG570 / Intel / Lattice configuration user guides
GDB Remote Serial ProtocolGNU debugger remote protocolTier BGNU GDB manual, appendix "Remote Protocol"
GPIB (IEEE 488)General Purpose Interface BusTier BIEEE 488.1 / 488.2
IEEE 1149.4Mixed-Signal Test BusTier BIEEE 1149.4-2010
IEEE 1149.6Boundary scan for AC-coupled and differential netsTier BIEEE 1149.6-2015
IEEE 1149.7 (cJTAG)Reduced-pin and enhanced-functionality test access portTier BIEEE 1149.7-2022
IEEE 1500Embedded Core Test standard (wrapper)Tier BIEEE 1500-2022
IEEE 1838Test access architecture for 3D stacked ICsTier BIEEE 1838-2019
LXILAN eXtensions for InstrumentationTier BLXI Consortium LXI Device Specification
Nexus 5001IEEE-ISTO 5001 embedded debug interfaceTier BIEEE-ISTO 5001-2012
PDIMicrochip AVR Program and Debug Interface (XMEGA)Tier BMicrochip XMEGA AU manual (PDI chapter)
PIC ICSPMicrochip In-Circuit Serial ProgrammingTier BMicrochip device programming specifications
PXI / PXIePCI / PCI Express eXtensions for InstrumentationTier BPXI Systems Alliance PXI-5 Express specification
RISC-V DebugRISC-V External Debug Support (DM, DTM, trace)Tier BRISC-V External Debug Support v1.0
STM32 system bootloaderST STM32 ROM bootloader protocols (USART, I²C, SPI, CAN, USB DFU)Tier BST AN2606, AN3155 (USART protocol)
SWIMST STM8 Single Wire Interface ModuleTier BST UM0470 (STM8 SWIM protocol)
SWO / ITMArm Serial Wire Output and Instrumentation Trace MacrocellTier BArm ARMv7-M / ARMv8-M Architecture Reference Manual (ITM, TPIU)
UPDIMicrochip Unified Program and Debug InterfaceTier BMicrochip tinyAVR 0/1 and AVR Dx datasheets (UPDI chapter)
USB DFUUSB Device Firmware Upgrade classTier BUSB-IF Device Class Specification for DFU 1.1
USBTMCUSB Test and Measurement ClassTier BUSB-IF USBTMC 1.0 (+ USB488 subclass)
VISAVirtual Instrument Software ArchitectureTier BIVI Foundation VISA specifications (IVI-4.x)
RISC-V DMIRISC-V Debug Module InterfaceTier CRISC-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.

Book 6 is on 2 career paths

More on this shelf