summaryrefslogtreecommitdiff
path: root/openocd.cfg
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2011-04-16 02:56:26 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2011-04-16 02:56:26 +0200
commitf502161cd7223534d4f0766a71249b81894166bb (patch)
treefe732c77003da43014f19777f706a35a6759fd81 /openocd.cfg
parente8e05aa89cfbc1fa2b2b535d5924842eb0f4a90f (diff)
Flash through openocd.
Diffstat (limited to 'openocd.cfg')
-rw-r--r--openocd.cfg23
1 files changed, 23 insertions, 0 deletions
diff --git a/openocd.cfg b/openocd.cfg
new file mode 100644
index 0000000..2343753
--- /dev/null
+++ b/openocd.cfg
@@ -0,0 +1,23 @@
+telnet_port 4444
+gdb_port 3333
+
+interface ft2232
+
+ft2232_vid_pid 0x1457 0x5118
+ft2232_layout "jtagkey_prototype_v1"
+ft2232_device_desc "USB<=>JTAG&RS232"
+
+reset_config trst_and_srst
+
+source [find target/stm32.cfg]
+
+proc flash_chip {} {
+ halt
+ stm32x mass_erase 0
+ reset halt
+ flash write_image suzumebachi.elf 0 elf
+ reset
+ shutdown
+}
+
+init