summaryrefslogtreecommitdiff
path: root/board/pdeval-stm32f072/openocd-flash.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'board/pdeval-stm32f072/openocd-flash.cfg')
-rw-r--r--board/pdeval-stm32f072/openocd-flash.cfg19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/pdeval-stm32f072/openocd-flash.cfg b/board/pdeval-stm32f072/openocd-flash.cfg
new file mode 100644
index 0000000000..d1b847a741
--- /dev/null
+++ b/board/pdeval-stm32f072/openocd-flash.cfg
@@ -0,0 +1,19 @@
+# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+source [find board/stm32f0discovery.cfg]
+
+# For flashing, force the board into reset on connect, this ensures that
+# code running on the core can't interfere with programming.
+reset_config connect_assert_srst
+
+gdb_port 0
+tcl_port 0
+telnet_port 0
+init
+reset init
+flash write_image erase $BUILD_DIR/ec.bin 0x08000000
+reset halt
+resume
+shutdown