diff --git a/worksheet4/openocd.cfg b/worksheet4/openocd.cfg index 402a463d1900413688543529d8df819478a36d0a..ebf9c65bf3bb4c20e3c0e1618827c90e655bd88f 100644 --- a/worksheet4/openocd.cfg +++ b/worksheet4/openocd.cfg @@ -1,26 +1,20 @@ -#deamon config -telnet_port 4444 -gdb_port 3333 +## openocd.cfg file for olimex boards +# using arm usb tiny jtag connector +# found by ALex edited by craig for Olimex boards +# January 2018 -# -# Olimex ARM-USB-TINY-H -# -# http://www.olimex.com/dev/arm-usb-tiny-h.html -# +debug_level 2 +telnet_port 4444 +gdb_port 3333 +source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg] -interface ft2232 -ft2232_device_desc "Olimex OpenOCD JTAG ARM-USB-TINY-H" -ft2232_layout olimex-jtag -ft2232_vid_pid 0x15ba 0x002a +#reset_config srst_only srst_open_drain +#jtag_ntrst_delay 200 +#jtag_rclk 0 +#jtag_rclk 8 -# -# Olimex STM32-P107 -# -# http://olimex.com/dev/stm32-p107.html -# +source [find target/stm32f1x.cfg] -# Work-area size (RAM size) = 64kB for STM32F107VC device -set WORKAREASIZE 0x10000 +scan_chain -source [find target/stm32f1x.cfg]