mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/nrf52: always recover device before flashing with OpenOCD
This commit is contained in:
parent
5d7194a4ee
commit
168829f865
@ -18,8 +18,12 @@ else
|
||||
PROGRAMMER ?= openocd
|
||||
endif
|
||||
|
||||
# setup OpenOCD for flashing. Version 0.10 of OpenOCD doesn't contain support
|
||||
# for nrf52dk and nrf52840dk boards. To use OpenOCD with these a version
|
||||
# build from source (master > 2018, August the 13rd) is required.
|
||||
# Setup OpenOCD for flashing. The nRF52 series is supported from OpenOCD v0.11
|
||||
# onwards.
|
||||
OPENOCD_DEBUG_ADAPTER ?= jlink
|
||||
OPENOCD_CONFIG = $(RIOTBOARD)/common/nrf52/dist/openocd.cfg
|
||||
|
||||
# From Build Code Fxx and later, the nRF52 device is automatically locked after
|
||||
# a power cycle and has to be recovered with a separate command after the
|
||||
# initialization. Otherwise the Flash can not be accessed.
|
||||
OPENOCD_POST_INIT_CMDS = -c 'nrf52_recover'
|
||||
|
Loading…
Reference in New Issue
Block a user