Add openocd script to upload code to link proto0

Signed-off-by: Randall Spangler <rspangler@chromium.org>

BUG=none
TEST=type 'script up-link.tcl' from openocd telnet console

Change-Id: I94d64a5356269628bec1a7f6809651d70398afa9
This commit is contained in:
Randall Spangler
2012-01-24 10:33:42 -08:00
parent 8c56cc4fa7
commit 8b7bdbdf9d

View File

@@ -0,0 +1,12 @@
# Copyright (c) 2012 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.
#
# Upload link image to flash and run it
reset halt
# Link proto0 has 128KB flash; proto1+ will likely have 256KB, in which
# case this'll need changing.
flash erase_sector 0 0 127
flash write_image ../../../build/link/ec.bin 0
reset