SWD Adapter v2
This adapter simplifies the attachment of an ST-LINK/V2 debugger / programmer to Altus Metrum products. The ST-LINK/V2 is designed to work with targets that have a 20-pin JTAG connector, but can also be used for JTAG serial wire debug (SWD) by connecting the appropriate 4 or 6 pins to the target.
Most Altus Metrum products present a 4-pin SWD connector, most often using a MicroMaTch connector. With the target VCC switch on this adapter set to 3.3V, a simple 4-pin cable allows you to re-flash an Altus Metrum target device, even if it is "bricked", and provides full source-level debugging capabilities useful when modifying our default firmware.
When the target VCC switch is in the "target" position, the 6-pin header can be used to attach to targets with operating voltages other than 3.3V but within the range supported by the ST-LINK/V2.
A push-button switch connected to the RESET line is also present on this board, which can be handy during debugging sessions.
This adapter board is shipped with a 4-pin MicroMaTch cable approximately 4 inches long, as shown in the photos. The ST-LINK/V2 is not included, but can be purchased from distributors like Digi-Key.
Design details for this adapter may be found here.