Embedded

7 Best SWD and JTAG Debug Adapters for Cortex-M

Compare seven SWD and JTAG debug adapters for Cortex-M, from Segger and PlatformIO to Arduino and Zephyr.

On this page
  1. Key takeaways
  2. What makes a good Cortex-M debug adapter
  3. Quick comparison
  4. The best SWD and JTAG debug adapters for Cortex-M
  5. How we chose
  6. FAQ
  7. Sources

Key takeaways

  • Segger J-Link probes are the most widely used SWD and JTAG adapters in the Cortex-M ecosystem.
  • PlatformIO and Zephyr provide unified debugging across many different adapters and editors.
  • Arduino and Espressif make debugging approachable on their own boards and chips.
  • MicroPython and CircuitPython offer REPL based debugging that needs no extra probe hardware.

What makes a good Cortex-M debug adapter

A debug adapter is the bridge between your computer and the debug port of a microcontroller. On Arm Cortex-M parts that port is usually SWD or JTAG, and the adapter lets you flash firmware, set breakpoints, and step through code on the real chip.

Some adapters are dedicated hardware probes, while others are software layers that bring many probes together under one interface. The list below covers both, along with the board and chip specific options that make debugging simpler on popular platforms.

Quick comparison

ToolBest forStarting priceFree plan
SeggerFast SWD and JTAG probesNot includedNot included
PlatformIOUnified debugging interfaceNot includedNot included
ArduinoApproachable board debuggingNot includedNot included
ZephyrIntegrated debug toolingNot includedNot included
EspressifESP32 JTAG debuggingNot includedNot included
MicroPythonInteractive REPL debuggingNot includedNot included
CircuitPythonSerial console debuggingNot includedNot included

The best SWD and JTAG debug adapters for Cortex-M

1. Segger

  • Official site: https://www.segger.com
  • Best for: Fast SWD and JTAG probes
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Fast flashing and stepping; Huge device support
  • Cons: Proprietary firmware; Probe hardware required

Segger makes the J-Link family of debug probes, which are the closest thing to a standard in the Cortex-M world. They speak both SWD and JTAG and work with a very long list of devices from nearly every major vendor.

The J-Link software works across many IDEs, and the probes are known for fast flashing and smooth breakpoint stepping. That consistency is why so many professional teams reach for a J-Link before anything else when a board needs serious debugging.

The probes are dedicated hardware, so they are a separate item from your board, and the firmware is proprietary. For most debugging tasks, though, the time saved makes them the reference point other adapters are measured against.

2. PlatformIO

  • Official site: https://platformio.org
  • Best for: Unified debugging interface
  • Starting price: Not included
  • Free plan: Not included
  • Pros: One interface for many probes; Integrated into VS Code
  • Cons: Needs a supported adapter; Debug setup varies by board

PlatformIO is an open source embedded development platform that includes a unified debugger inside editors such as VS Code. Rather than replacing your probe, it gives one consistent interface on top of J-Link, ST-Link, and several other adapters.

With PlatformIO you set a debug configuration for a project and then use the same breakpoint and watch workflow no matter which adapter sits between the computer and the chip. That consistency is valuable when a team works across many different boards.

The catch is that you still need a supported adapter, and the exact setup can differ from one board to another. Once configured, however, PlatformIO removes much of the tool juggling that embedded debugging usually involves.

3. Arduino

  • Official site: https://www.arduino.cc
  • Best for: Approachable board debugging
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Simple debug workflow; IDE 2 includes debugging
  • Cons: Debug support on some boards only; Slower than dedicated probes

Arduino has pushed debugging toward beginners through its IDE, which now includes a debug interface for boards that carry an on board debug circuit. Several Arm based Arduino boards expose SWD or JTAG pins for use with an external probe as well.

The value of Arduino here is approachability. Where a raw probe setup can feel intimidating, the Arduino workflow wraps breakpoints and variable views in a familiar interface, so newcomers can see what their firmware is doing.

Debug support is not universal across the Arduino range, and the experience is generally more basic than a dedicated J-Link. For learning and everyday sketches, though, it is a friendly on ramp to real hardware debugging.

4. Zephyr

  • Official site: https://www.zephyrproject.org
  • Best for: Integrated debug tooling
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Unified west tooling; Broad probe support
  • Cons: Steep learning curve; Configuration heavy

Zephyr is an open source RTOS whose build system treats flashing and debugging as part of the workflow. Its west command can drive the common adapters, including J-Link, ST-Link, and pyOCD based probes, through a shared runner system.

For a team already building with Zephyr, that integration is a big plus, because debug setup lives in the same configuration as the build rather than in a separate tool. It keeps the whole project reproducible across machines and probes.

The flip side is that Zephyr itself has a learning curve, and getting the debug runners configured takes some reading. Within a Zephyr project, however, the payoff is a single command that flashes and starts a debug session.

5. Espressif

  • Official site: https://www.espressif.com
  • Best for: ESP32 JTAG debugging
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Purpose built for ESP32; JTAG and UART together
  • Cons: Espressif chips only; Extra adapter board needed

Espressif is the company behind the ESP32 family, and it supports JTAG debugging on its chips through the ESP-IDF framework and OpenOCD. Its ESP-Prog adapter combines a JTAG port with a serial connection for a purpose built ESP32 debug board.

Because the tooling is built around Espressif silicon, the flashing and debugging flow is tightly matched to the chips, which reduces guesswork. The IDF documentation walks through connecting the adapter and starting a debug session step by step.

The tradeoff is that this path only serves Espressif devices, and you need the adapter board for full JTAG. For anyone working with ESP32 parts, though, it is the natural and best documented way to debug.

6. MicroPython

  • Official site: https://micropython.org
  • Best for: Interactive REPL debugging
  • Starting price: Not included
  • Free plan: Not included
  • Pros: No extra hardware needed; Inspect live state easily
  • Cons: Not a hardware adapter; Slower than breakpoint debugging

MicroPython is a Python runtime for microcontrollers that offers a different debugging path: the REPL, a live interactive prompt over the serial connection. From it you can inspect variables, evaluate expressions, and poke at the hardware while the device runs.

This is not a SWD or JTAG adapter, but it often removes the need for one, because the interaction happens over the same USB cable that powers the board. For quick checks and prototyping, that convenience is hard to beat.

The limits are real, since a REPL cannot pause the chip to examine every register the way a hardware probe can, and interpreted Python is slower than C. For many firmware problems, though, a live prompt gets you the answer faster than setting up a full debug session.

7. CircuitPython

  • Official site: https://circuitpython.org
  • Best for: Serial console debugging
  • Starting price: Not included
  • Free plan: Not included
  • Pros: Beginner friendly console; USB drive workflow
  • Cons: Limited to supported boards; REPL rather than full breakpoints

CircuitPython is a derivative of MicroPython created by Adafruit with an emphasis on ease of use. Its board appears as a USB drive, and the serial console doubles as a REPL where errors and print output show up in plain text.

The console based debugging loop is gentle for newcomers, because you edit a file, watch the error appear, fix it, and repeat, with no probe or IDE setup. The error messages are written to be readable for people early in their embedded learning.

Like MicroPython, it is a workflow rather than a hardware adapter, and it only runs on boards with a CircuitPython port. For education and fast iteration, that simplicity is exactly the point.

How we chose

We anchored the list on Segger J-Link, the adapter most of the Cortex-M world builds around, then added the software layers that unify debugging, PlatformIO and Zephyr. Those four cover the professional path from a single probe to reproducible team workflows.

We also included the vendor and board specific routes, Arduino and Espressif, which make debugging approachable on their own hardware, plus the two Python runtimes that sidestep probes with a live serial console. The result serves both hardened bring up and quick, friendly iteration.

FAQ

What is the difference between SWD and JTAG?

SWD is a two wire debug interface designed for Arm cores, while JTAG is an older multi wire standard. Most Cortex-M chips support SWD, and many adapters speak both.

Do I need a J-Link to debug a Cortex-M board?

No. J-Link is the most common choice, but many boards work with ST-Link, pyOCD, or an on board debug circuit instead.

Can I debug Arduino boards without extra hardware?

On some boards, yes. Arduino boards with an on board debug circuit can be debugged through the IDE, while others need an external probe.

How do I debug an ESP32?

Use the ESP-IDF toolchain with OpenOCD and a JTAG connection, often through the ESP-Prog adapter, which also carries a serial link.

What is a REPL and how does it help with debugging?

A REPL is a live interactive prompt. MicroPython and CircuitPython expose one over serial, so you can inspect variables and run code on the device as it runs.

Sources