mirror of
https://git.code.sf.net/p/openocd/code
synced 2025-04-21 14:49:05 +00:00
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
30 lines
1.1 KiB
INI
30 lines
1.1 KiB
INI
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# isodebug v1
|
|
# 5 kV isolated JTAG/SWD + UART adapter by Unjo AB
|
|
|
|
adapter driver ftdi
|
|
ftdi vid_pid 0x22b7 0x150d
|
|
|
|
ftdi layout_init 0x0ff8 0xfffb
|
|
|
|
ftdi layout_signal LED -ndata 0x0100
|
|
ftdi layout_signal nTRST -data 0x0200
|
|
ftdi layout_signal nSRST -noe 0x0400
|
|
ftdi layout_signal SWDIO_OE -data 0x0008
|
|
|
|
# Mode signals, either of these needs to be high to drive the JTAG/SWD pins.
|
|
# The power-on state is low for both signals but the init setting above sets
|
|
# JTAG_EN high.
|
|
ftdi layout_signal SWD_EN -data 0x1000
|
|
ftdi layout_signal JTAG_EN -data 0x0800
|
|
|
|
# In SWD mode, the JTAG_EN signal doubles as SWO_EN_N which switches the
|
|
# second FTDI channel UART RxD to the SWO pin instead of the separate RxD
|
|
# pin. Note that the default init state has this pin high so when OpenOCD
|
|
# starts in SWD mode, SWO is by default disabled. To enable SWO tracing,
|
|
# issue the command 'ftdi set_signal SWO_EN 1' where tracing is configured.
|
|
# To switch back to using the separate UART, SWO_EN needs to be disabled
|
|
# before exiting OpenOCD, or the adapter replugged.
|
|
ftdi layout_signal SWO_EN -nalias JTAG_EN
|