Skip to content

Commit

Permalink
boards/nRF52xx: correctly set JLINK_DEVICE
Browse files Browse the repository at this point in the history
  • Loading branch information
crasbe committed Apr 19, 2024
1 parent 3ba49d5 commit 0f7c6ff
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 2 deletions.
3 changes: 3 additions & 0 deletions boards/acd52832/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# set default port depending on operating system
PORT_LINUX ?= /dev/ttyUSB0

# setup JLink for flashing
JLINK_DEVICE = nrf52832_xxaa

include $(RIOTBOARD)/common/nrf52/Makefile.include
2 changes: 0 additions & 2 deletions boards/common/nrf52/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions boards/dwm1001/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# setup JLink for flashing
JLINK_DEVICE = nrf52832_xxaa

# include common configuration for nrf52 based boards
include $(RIOTBOARD)/common/nrf52/Makefile.include
3 changes: 3 additions & 0 deletions boards/e104-bt5010a-tb/Makefile.include
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# setup JLink for flashing
JLINK_DEVICE = nrf52810_xxaa

include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.include
3 changes: 3 additions & 0 deletions boards/e104-bt5011a-tb/Makefile.include
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# setup JLink for flashing
JLINK_DEVICE = nrf52811_xxaa

include $(RIOTBOARD)/common/e104-bt50xxa-tb/Makefile.include
3 changes: 3 additions & 0 deletions boards/nrf52840dk/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ TTY_BOARD_FILTER := --model J-Link
# the debug adapter
DEBUG_ADAPTER_ID_IS_TTY_SERIAL := 1

# setup JLink for flashing
JLINK_DEVICE = nrf52840_xxaa

include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
3 changes: 3 additions & 0 deletions boards/nrf52dk/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
# USB serials to only select the UART bridge of integrated J-Link debugger.
TTY_BOARD_FILTER := --model J-Link

# setup JLink for flashing
JLINK_DEVICE = nrf52832_xxaa

include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
3 changes: 3 additions & 0 deletions boards/ruuvitag/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@ ifeq (,$(filter stdio_%,$(DISABLE_MODULE) $(USEMODULE)))
RIOT_TERMINAL ?= jlink
endif

# setup JLink for flashing
JLINK_DEVICE = nrf52832_xxaa

# use shared Makefile.include
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
3 changes: 3 additions & 0 deletions boards/waveshare-nrf52840-eval-kit/Makefile.include
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# setup JLink for flashing
JLINK_DEVICE = nrf52840_xxaa

include $(RIOTBOARD)/common/nrf52/Makefile.include

0 comments on commit 0f7c6ff

Please sign in to comment.