diff options
author | Myles Watson <mylesgw@chromium.org> | 2015-07-17 13:05:43 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-04 19:22:12 +0000 |
commit | 050db0510ef2d7ed72f1befc9bd0569d69bf0e4a (patch) | |
tree | 8a5a6fb5c7ff16df460d2d75fcfedc16469ef573 /util/openocd/npcx_chip.cfg | |
parent | d804e8fdbd1e9f238317c68d235add1806dcd49f (diff) | |
download | chrome-ec-050db0510ef2d7ed72f1befc9bd0569d69bf0e4a.tar.gz |
flash_ec: add support for SWD, nrf51, and hadoken
BUG=none
TEST=manual
BRANCH=none
flash_ec --board=hadoken
flash_ec --board=npcx_evb
flash_ec --board=samus
Use openocd in SWD mode to flash the nRF51 chip.
Use warm_reset to exit DEBUG mode.
Change-Id: Iaf2827d4ce5be6d61431a3de7ab4f86aa4adde02
Signed-off-by: Myles Watson <mylesgw@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/287039
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'util/openocd/npcx_chip.cfg')
-rw-r--r-- | util/openocd/npcx_chip.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/util/openocd/npcx_chip.cfg b/util/openocd/npcx_chip.cfg index 8e137307e5..ddd01df5a4 100644 --- a/util/openocd/npcx_chip.cfg +++ b/util/openocd/npcx_chip.cfg @@ -2,3 +2,10 @@ source [find npcx.cfg] source [find npcx_cmds.tcl] +ftdi_layout_init 0x0018 0x009b + +# open collector oe only +ftdi_layout_signal nSRST -oe 0x0020 + +reset_config trst_only + |