Files
OpenCellular/util/openocd/nrf51_chip.cfg
Myles Watson 050db0510e 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>
2015-08-04 19:22:12 +00:00

15 lines
364 B
INI

#nRF51 uses SWD
transport select swd
# Since nTRST is repurposed, we need a different layout_init setting
ftdi_layout_init 0x0008 0x009b
ftdi_layout_signal SWDIO_OE -nalias nTRST
ftdi_layout_signal SWD_EN -alias TMS
#Disable fast flashing, it only works with ST-Link and CMSIS-DAP
set WORKAREASIZE 0
source [find target/nrf51.cfg]
source [find nrf51_cmds.tcl]