aboutsummaryrefslogtreecommitdiff
path: root/openocd
diff options
context:
space:
mode:
Diffstat (limited to 'openocd')
-rw-r--r--openocd/interface/stm32vslink.cfg5
-rw-r--r--openocd/target/stm32f1x.cfg12
2 files changed, 17 insertions, 0 deletions
diff --git a/openocd/interface/stm32vslink.cfg b/openocd/interface/stm32vslink.cfg
new file mode 100644
index 0000000..bbfd901
--- /dev/null
+++ b/openocd/interface/stm32vslink.cfg
@@ -0,0 +1,5 @@
+adapter driver vsllink
+vsllink usb_vid 0x0483
+vsllink usb_pid 0xA038
+adapter speed 100
+transport select jtag
diff --git a/openocd/target/stm32f1x.cfg b/openocd/target/stm32f1x.cfg
new file mode 100644
index 0000000..6e16f9d
--- /dev/null
+++ b/openocd/target/stm32f1x.cfg
@@ -0,0 +1,12 @@
+set CHIPNAME stm32f1x
+set CPUTAPID 0x3ba00477
+
+gdb_memory_map enable
+gdb_flash_program enable
+
+jtag newtap $CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $CPUTAPID
+dap create $CHIPNAME.dap -chain-position $CHIPNAME.cpu
+
+jtag newtap $CHIPNAME bs -irlen 5
+
+target create $CHIPNAME.cpu cortex_m -endian little -dap $CHIPNAME.dap