mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-08 16:41:55 +00:00
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>
15 lines
364 B
INI
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]
|
|
|