ESP32 Bit Pirate home
  • JTAG
  • Intermediate
  • 5 min
  • Serial CLI

Recipe · Intermediate · JTAG

How to review JTAG and SWD scan pins

Review or change the default GPIO group used for ESP32 Bit Pirate SWD and JTAG pinout scans.

JTAG debug header with scan lines.
A practical ESP32 Bit Pirate recipe based on documented firmware commands.
Step 1

Commands

Keep the default group when it already matches the board. Run config only to review or change it, then start the appropriate scan.

Result

What it means

The scan uses its saved GPIO group; it does not try every GPIO automatically. Adjust the group only when the default does not fit the board or target.

Troubleshooting

  • Re-enter the selected mode setup if pins changed.
  • Confirm the target shares ground with the ESP32 Bit Pirate.
  • Start with short commands before using longer capture or bridge sessions.

Next steps

  • Run SWD scan first if the target is likely ARM Cortex.
  • Run JTAG scan when TDI/TDO/TCK/TMS are expected.
  • Save the discovered mapping in a project note.

JTAG and SWD scan pin group FAQ

Why configure a candidate pin group?

Scanning every possible GPIO is slow and noisy. A smaller group based on visible pads or a header makes SWD and JTAG scans faster and easier to repeat.

Should I include power pins in the scan group?

No. Only include candidate signal pads connected to safe GPIO inputs. Keep VREF as a voltage reference check and always share ground with the target.

When should I rerun config?

Rerun config when you move wires, change boards, reduce the candidate set, or switch from broad discovery to a smaller verification scan.

Go deeper