mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 13:14:51 +00:00
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:
12
chip/lm4/openocd/up-link.tcl
Normal file
12
chip/lm4/openocd/up-link.tcl
Normal 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
|
||||
Reference in New Issue
Block a user