diff --git a/chip/lm4/openocd/up-link.tcl b/chip/lm4/openocd/up-link.tcl new file mode 100644 index 0000000000..227a9c42ea --- /dev/null +++ b/chip/lm4/openocd/up-link.tcl @@ -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