tcl/interface: add SPDX tag
[fw/openocd] / tcl / interface / ftdi / swd-resistor-hack.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2
3 #
4 # Connect TDI to SWDIO via a suitable series resistor (220-470 Ohm or
5 # so depending on the drive capability of the target and adapter);
6 # connect TDO directly to SWDIO.
7 #
8 # You also need to have reliable GND connection between the target and
9 # adapter. Vref of the adapter should be supplied with a voltage equal
10 # to the target's (preferably connect it to Vcc). You can also
11 # optionally connect nSRST. Leave everything else unconnected.
12 #
13 # FTDI                          Target
14 # ----                          ------
15 # 1  - Vref   ----------------- Vcc
16 # 3  - nTRST  -
17 # 4  - GND    ----------------- GND
18 # 5  - TDI    ---/\470 Ohm/\--- SWDIO
19 # 7  - TMS    -
20 # 9  - TCK    ----------------- SWCLK
21 # 11 - RTCK   -
22 # 13 - TDO    ----------------- SWDIO
23 # 15 - nSRST  - - - - - - - - - nRESET
24 #
25
26 transport select swd
27
28 ftdi layout_signal SWD_EN -data 0