diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-07-22 09:15:44 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-27 19:30:49 +0000 |
commit | af7fb66ae3ae4f5741a05961658f4a6fa9beae6e (patch) | |
tree | 8b7469331719295a2b387ee2364cb4fd3f15248d /board | |
parent | 4626177c3b055fdbab6344065d9b335a40ea1c1e (diff) | |
download | chrome-ec-af7fb66ae3ae4f5741a05961658f4a6fa9beae6e.tar.gz |
Discovery: Add OpenOCD configuration file
This allows the "make flash" command to work for the Discovery board.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
cd board/discovery
make flash
Change-Id: Ifa3c1eca58b80093b47a8fe25b47d29dba923d6b
Reviewed-on: https://chromium-review.googlesource.com/287439
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/discovery/openocd-flash.cfg | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/board/discovery/openocd-flash.cfg b/board/discovery/openocd-flash.cfg new file mode 100644 index 0000000000..771cab6f26 --- /dev/null +++ b/board/discovery/openocd-flash.cfg @@ -0,0 +1,19 @@ +# Copyright (c) 2015 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/stm32ldiscovery.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 |