IT lexicon › Hardware › IDCODE (JTAG)

IDCODE (JTAG)

Hardware På svenska → Updated: 2026-11-05

The 32-bit register a JTAG device hands over to say what it is — the first sign that a debug connection is actually alive.

IEEE 1149.1 makes it optional, but nearly every chip has one. The layout is fixed: bit 0 is always 1, bits 1–11 hold the manufacturer's JEDEC code, 12–27 the part number and the top four a revision. If a device has an IDCODE, it is selected automatically after Test-Logic-Reset, so a debugger can shift 32 bits out of every device in the chain without sending a single instruction first.

The 1 in bit 0 is the clever part. Devices without IDCODE fall back to BYPASS, which shifts out a 0, so tools can count how many chips sit in series. When OpenOCD prints 0x4ba00477, it has found ARM's debug port on a Cortex-M3 or M4. When it reads all ones or all zeros, the problem is the cable, the power or a pin that firmware repurposed as GPIO.

← Back to the lexicon