usbtest/openocd/ftdi.cfg

38 lines
814 B
INI
Raw Normal View History

2021-09-30 16:33:59 +03:00
# FT2232H Board V3 connected to Maple Mini
adapter driver ftdi
transport select swd
ftdi_vid_pid 0x0403 0x6010
# ftdi_device_desc "USB Serial Converter A"
# ftdi_device_desc "FT2232H ¿ª·¢°å"
# ftdi_serial "FTZ7O8O0"
ftdi_channel 1
#adapter_khz 500
#adapter_khz 8
ftdi_layout_init 0x0018 0x05fb
ftdi_layout_signal SWD_EN -data 0
#ftdi_layout_signal nSRST -data 0x0020
ftdi_layout_signal nTRST -ndata 0x0010 -noe 0x0040
ftdi_layout_signal nSRST -ndata 0x0020 -noe 0x0040
source [find target/stm32f1x.cfg]
reset_config srst_only
# Search for RTT string from start of RAM
rtt setup 0x20000000 8192 "SEGGER RTT"
rtt server start 9090 0
# $_TARGETNAME configure -event resume-end {
# #rtt start
# }
$_TARGETNAME configure -event gdb-start {
rtt start
}
$_TARGETNAME configure -event halted {
rtt stop
}