mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20599 from crasbe/pr/nrf52840_jlink
boards/nRF52xx: correctly set JLINK_DEVICE
This commit is contained in:
commit
a8ffb340fc
@ -18,8 +18,6 @@ else
|
||||
PROGRAMMER ?= openocd
|
||||
endif
|
||||
|
||||
# setup JLink for flashing
|
||||
JLINK_DEVICE = nrf52
|
||||
# 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.
|
||||
|
@ -35,6 +35,11 @@ ifneq (,$(filter nrf52840xxaa,$(CPU_MODEL)))
|
||||
RAM_LEN ?= 0x40000
|
||||
endif
|
||||
|
||||
# Set the target for the JLink programmer for flashing, JLINK expects an
|
||||
# underscore in the target, like "nrf52832_xxaa".
|
||||
# Boards that do not use a JLink ignore the flag.
|
||||
JLINK_DEVICE = $(subst xx,_xx,$(CPU_MODEL))
|
||||
|
||||
VECTORS_O ?= $(BINDIR)/nrf52_vectors/vectors_$(CPU_MODEL).o
|
||||
|
||||
include $(RIOTCPU)/nrf5x_common/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user