---
# System prepended metadata

title: OpenOCD - JTAG
tags: [JTAG, FT232, OpenOCD, FT2232]

---

# OpenOCD - JTAG

###### tags: `JTAG`, `OpenOCD`, `FT2232`, `FT232`

## FTDI FT2232H-56Q Mini Module

* **4K** Bytes Tx and Rx data buffers per interface
* [ftdi/minimodule.cfg](https://sourceforge.net/p/openocd/code/ci/master/tree/tcl/interface/ftdi/minimodule.cfg) in OpenOCD
    * nSRST defined on pin CN2-13 of the MiniModule (pin **ADBUS5 [AD5]** on the FT2232H chip) => OpenOCD uses FT2232H's **channel A**
    * Table 3.1 FT2232H Pin Configurations for 64-pin QFN and LQFP package of [FT2232H Dual High Speed USB to Multipurpose UART/FIFO IC Datasheet](http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf):
![](https://hackmd.io/_uploads/ryAvJvdL3.png)

    * Table 3.13 FT2232H Pin Configurations for 56-pin VQFN package of [FT2232H Dual High Speed USB to Multipurpose UART/FIFO IC Datasheet](http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf):
![](https://hackmd.io/_uploads/S1LqkDdUn.png)

* Table 3.1 FT2232H-56Q Mini Module Connection–CN2 of [FT2232H-56Q Mini Module Datasheet](https://www.mouser.tw/datasheet/2/163/DS_FT2232H-56Q_Mini_Module-1621264.pdf):
![](https://hackmd.io/_uploads/S1Pp1POU3.png)

* Module connect pins:
  | Pin # | Function |
  | ----- | -------- |
  | AD0   | TCK      |
  | AD1   | TDI      |
  | AD2   | TDO      |
  | AD3   | TMS      |
  | AD5   | nTRST    |
* The quality of USB wire is really important!!!

## FTDI FT232H

* **1K** Bytes Tx and Rx data buffers
* [ftdi/um232h.cfg](https://sourceforge.net/p/openocd/code/ci/master/tree/tcl/interface/ftdi/um232h.cfg) in OpenOCD
* [FT232H SINGLE CHANNEL HI-SPEED USB TO MULTIPURPOSE UART/FIFO IC Datasheet](https://ftdichip.com/wp-content/uploads/2020/07/DS_FT232H.pdf)
![](https://hackmd.io/_uploads/S1dJxwdLn.png)
* Use it in **MPSSE** mode.
* Module connect pins:
  | Pin # | Function |
  | ----- | -------- |
  | AD0   | TCK      |
  | AD1   | TDI      |
  | AD2   | TDO      |
  | AD3   | TMS      |
  | AC0   | nTRST    |
  | AC1   | nSRST    |

## FTDI C232HM-DDHSL-0/C232HM-EDHSL-0

* [ftdi/c232hm.cfg](https://sourceforge.net/p/openocd/code/ci/master/tree/tcl/interface/ftdi/c232hm.cfg) in OpenOCD
* [Cable datasheet](https://www.mouser.tw/datasheet/2/163/DS_C232HM_MPSSE_CABLE-10602.pdf)
* Figure 3-1 C232HM MPSSE Cable Connections (numbers refer to pad numbers on the PCB)
![](https://hackmd.io/_uploads/SJmGev_In.png)
