openocd/tcl/interface/ftdi/swd-resistor-hack.cfg
Antonio Borneo 3bccc77999 tcl/interface: add SPDX tag
For historical reasons, no license information was added to the
tcl files. This makes trivial adding the SPDX tag through script:
	fgrep -rL SPDX tcl/interface | while read a;do \
	sed -i '1{i# SPDX-License-Identifier: GPL-2.0-or-later\n
	}' $a;done

With no specific license information from the author, let's extend
the OpenOCD project license GPL-2.0-or-later to the files.

Change-Id: I7bd6a628e9e153fc477cddf9b97087a39ec48aa7
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7029
Tested-by: jenkins
2022-06-24 21:54:01 +00:00

29 lines
899 B
INI

# SPDX-License-Identifier: GPL-2.0-or-later
#
# Connect TDI to SWDIO via a suitable series resistor (220-470 Ohm or
# so depending on the drive capability of the target and adapter);
# connect TDO directly to SWDIO.
#
# You also need to have reliable GND connection between the target and
# adapter. Vref of the adapter should be supplied with a voltage equal
# to the target's (preferably connect it to Vcc). You can also
# optionally connect nSRST. Leave everything else unconnected.
#
# FTDI Target
# ---- ------
# 1 - Vref ----------------- Vcc
# 3 - nTRST -
# 4 - GND ----------------- GND
# 5 - TDI ---/\470 Ohm/\--- SWDIO
# 7 - TMS -
# 9 - TCK ----------------- SWCLK
# 11 - RTCK -
# 13 - TDO ----------------- SWDIO
# 15 - nSRST - - - - - - - - - nRESET
#
transport select swd
ftdi layout_signal SWD_EN -data 0