diff --git a/templates/bluepill/openocd.cfg b/templates/bluepill/openocd.cfg index dfa1d72..d70df06 100644 --- a/templates/bluepill/openocd.cfg +++ b/templates/bluepill/openocd.cfg @@ -7,6 +7,7 @@ ftdi_vid_pid 0x0403 0x6010 # The other channel is used for UART ftdi_channel 1 ftdi_layout_init 0x0018 0x05fb +ftdi_serial FT2XCRZ1 # BDBUS4 is connected to JTAG TRST ftdi_layout_signal nTRST -data 0x0010 diff --git a/templates/f7/openocd.cfg b/templates/f7/openocd.cfg new file mode 100644 index 0000000..b1b5f2b --- /dev/null +++ b/templates/f7/openocd.cfg @@ -0,0 +1,27 @@ +interface ftdi +transport select swd + +ftdi_device_desc "FT2232H MiniModule" +ftdi_vid_pid 0x0403 0x6010 +ftdi_serial FT2XA9MY + +# The other channel is used for UART +ftdi_channel 1 +ftdi_layout_init 0x0018 0x05fb + +# This is somehow necessary? +ftdi_layout_signal SWD_EN -data 0 + +# BDBUS4 is connected to System Reset +ftdi_layout_signal nSRST -data 0x0010 + + +#set WORKAREASIZE 0x2000 +source [find target/stm32f7x.cfg] + +#tpiu config internal swodump.stm32f103-generic.log uart off 72000000 + +#reset_config srst_only srst_push_pull srst_nogate connect_assert_srst +reset_config srst_only srst_push_pull srst_nogate +#reset_config none srst_push_pull srst_nogate +