2022-06-12 16:50:59 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2014-08-27 11:17:27 -05:00
|
|
|
#
|
2020-08-14 05:21:54 -05:00
|
|
|
# Supports SWD using the FT2232H or FT4232H minimodule.
|
2014-08-27 11:17:27 -05:00
|
|
|
# Each can support 2 SWD interfaces.
|
|
|
|
#
|
|
|
|
# FT2232H or FT4232H minimodule channel 0 (Channel A)
|
|
|
|
# Connector FTDI Target
|
|
|
|
# Pin Name
|
|
|
|
# --------- ------ ------
|
|
|
|
# CN2-11 VIO VDD_IO (Or connect to CN2-5 on the minimodule instead for a 3V3 interface)
|
|
|
|
# CN2-2 GND GND
|
|
|
|
# CN2-7 ADBUS0 (TCK) SWCLK
|
|
|
|
# CN2-9 ADBUS2 (TDI/TDO) SWDIO
|
|
|
|
# CN2-10 ADBUS1 (TDO/TDI) SWDIO
|
|
|
|
# CN2-14 ADBUS4 (GPIOL0) nRESET
|
|
|
|
#
|
|
|
|
# FT2232H minimodule channel 1 (Channel B)
|
|
|
|
# FTDI Target
|
|
|
|
# ---- ------
|
|
|
|
# CN2-11 - VDD_IO
|
|
|
|
# CN2-2 - GND
|
|
|
|
# CN3-26 - SWCLK
|
|
|
|
# CN3-25 - SWDIO
|
|
|
|
# CN3-24 - SWDIO
|
|
|
|
# CN3-21 - nRESET
|
|
|
|
#
|
|
|
|
# FT4232H minimodule channel 1 (Channel B)
|
|
|
|
# FTDI Target
|
|
|
|
# ---- ------
|
|
|
|
# CN2-11 - VDD_IO
|
|
|
|
# CN2-2 - GND
|
|
|
|
# CN2-18 - SWCLK
|
|
|
|
# CN2-17 - SWDIO
|
|
|
|
# CN2-20 - SWDIO
|
|
|
|
# CN2-22 - nRESET
|
|
|
|
#
|
|
|
|
|
2019-08-23 08:49:58 -05:00
|
|
|
adapter driver ftdi
|
2014-08-27 11:17:27 -05:00
|
|
|
|
|
|
|
#Select your module type and channel
|
|
|
|
|
2021-06-23 13:54:49 -05:00
|
|
|
#ftdi device_desc "FT2232H MiniModule"
|
|
|
|
ftdi vid_pid 0x0403 0x6010
|
|
|
|
#ftdi channel 1
|
2014-08-27 11:17:27 -05:00
|
|
|
|
2021-06-23 13:54:49 -05:00
|
|
|
#ftdi device_desc "FT4232H MiniModule"
|
|
|
|
#ftdi vid_pid 0x0403 0x6011
|
|
|
|
#ftdi channel 1
|
2014-08-27 11:17:27 -05:00
|
|
|
|
2021-06-23 13:54:49 -05:00
|
|
|
ftdi layout_init 0x0000 0x000b
|
|
|
|
ftdi layout_signal nSRST -data 0x0010 -oe 0x0010
|
|
|
|
ftdi layout_signal SWD_EN -data 0
|
|
|
|
ftdi layout_signal SWDIO_OE -data 0
|
2014-08-27 11:17:27 -05:00
|
|
|
|
|
|
|
transport select swd
|