1
0
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:
crasbe 2024-11-08 16:04:08 +01:00
parent 5d7194a4ee
commit 168829f865

View File

@ -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'