Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Adafruit JTAG 2x10 to SWD 2x5: Examples, Pinouts, and Specs

Image of Adafruit JTAG 2x10 to SWD 2x5Design with Adafruit JTAG 2x10 to SWD 2x5 in Cirkit Designer

Introduction

The Adafruit JTAG 2x10 to SWD 2x5 adapter board is a compact and reliable solution designed to bridge the gap between JTAG and Serial Wire Debug (SWD) interfaces. This adapter is particularly useful for developers and engineers who need to debug or program microcontrollers and other ICs that support SWD, but only have access to JTAG tools. Common applications include firmware flashing, debugging embedded systems, and programming microcontrollers in development environments.

Explore Projects Built with Adafruit JTAG 2x10 to SWD 2x5

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Wi-Fi Enabled Sensor Hub with ESP8266 and ADS1115 ADC: A project utilizing Adafruit JTAG 2x10 to SWD 2x5 in a practical application
Wi-Fi Enabled Sensor Hub with ESP8266 and ADS1115 ADC

This circuit features two ESP8266 NodeMCU microcontrollers, each interfaced with a Gravity I2C ADS1115 16-Bit ADC module for analog-to-digital conversion. The microcontrollers communicate with the ADC modules via I2C protocol, with one set of connections for each microcontroller-ADC pair, and are powered through a common 3.3V and ground connection.

Open Project in Cirkit Designer
Image of Wemos D1 Mini Based Soil Moisture and Temperature Monitoring System: A project utilizing Adafruit JTAG 2x10 to SWD 2x5 in a practical application
Wemos D1 Mini Based Soil Moisture and Temperature Monitoring System

This circuit features a Wemos D1 Mini microcontroller connected to an AHT10 temperature and humidity sensor and a capacitive soil moisture sensor. The AHT10 communicates with the Wemos D1 Mini via I2C (with SDA connected to D2 and SCL to D1), while the soil moisture sensor's analog output is connected to the A0 pin of the Wemos D1 Mini. Both sensors and the microcontroller share a common power supply, with the 3V3 pin of the Wemos D1 Mini providing power to the sensors.

Open Project in Cirkit Designer

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The following tables provide the pinout configurations for the JTAG 2x10 connector and the corresponding SWD 2x5 connector.

JTAG 2x10 Connector Pinout

Pin # Signal Name Description
1 VREF Target reference voltage
2 NC No connection
3 nTRST JTAG reset signal (optional)
4 GND Ground
5 TDI Test Data In
6 GND Ground
7 TMS Test Mode Select
8 GND Ground
9 TCK Test Clock
10 GND Ground
11 RTCK Return Test Clock (optional)
12 GND Ground
13 TDO Test Data Out
14 GND Ground
15 RESET System reset signal
16 GND Ground
17-20 NC No connection

SWD 2x5 Connector Pinout

Pin # Signal Name Description
1 VREF Target reference voltage
2 SWCLK SWD clock signal
3 GND Ground
4 SWDIO SWD data I/O
5 GND Ground
6 SWO Serial Wire Output (optional)
7-10 NC No connection

Usage Instructions

Connecting the Adapter

  1. Ensure that the target device is powered off before making any connections.
  2. Align the JTAG 2x10 connector of the adapter board with the JTAG header on your programming tool or debugger.
  3. Connect the SWD 2x5 connector of the adapter board to the SWD header on the target device.
  4. Verify that all connections are secure and that the pin orientations match the pinout tables provided above.

Best Practices

Troubleshooting and FAQs

Common Issues

Q: The target device is not responding to the debugger. What could be wrong? A: Ensure that all connections are secure and correctly oriented. Check that the target device is powered and that the reference voltage (VREF) is present on the adapter.

Q: I'm getting intermittent connection issues. What should I do? A: Inspect the adapter and the headers for any signs of damage or debris. Clean the contacts if necessary and ensure that the connection is firm.

Q: Can I use this adapter for devices that do not support SWD? A: No, this adapter is specifically designed to convert JTAG to SWD. It will not work with devices that do not support the SWD protocol.

Troubleshooting Tips

For further assistance, contact Adafruit customer support or refer to the community forums for additional troubleshooting advice.