target: add Espressif ESP32-S2 basic support
[fw/openocd] / tcl / interface / ftdi / esp32s2_kaluga_v1.cfg
1 # SPDX-License-Identifier: GPL-2.0-or-later
2 #
3 # Driver for the FT2232H JTAG chip on the Espressif Kaluga-1 ESP32-S2 board
4 # (and most other FT2232H and FT232H based boards)
5 #
6 # JTAG DIP switch (labelled SW5 in the schematic) should be "ON" for lines
7 # labelled TCK, TDO, TDI and TWS, to connect the FT2232H to the ESP32-S2.
8 #
9
10 adapter driver ftdi
11 ftdi vid_pid 0x0403 0x6010 0x0403 0x6014
12
13 # interface 1 is the uart
14 ftdi channel 0
15
16 # TCK, TDI, TDO, TMS: ADBUS0-3
17 # TRST/SRST: ADBUS5 (unused for now)
18 # LEDs: ACBUS3-4 (inverted)
19
20 ftdi layout_init 0x0008 0x180b
21 ftdi layout_signal LED -ndata 0x0800
22 ftdi layout_signal LED2 -ndata 0x1000
23
24 # ESP32* series chips do not have a TRST input, and the SRST line is connected
25 # to the EN pin.
26 # The target code doesn't handle SRST reset properly yet, so this is
27 # commented out:
28 # ftdi layout_signal nSRST -oe 0x0020
29 # reset_config srst_only