Skip to content

Commit 844a0db

Browse files
committed
nrf52840dongle: Replicate adafruit-clue's behavior
1 parent 2b08630 commit 844a0db

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

boards/nrf52840dongle/Makefile.dep

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
33
endif
44

55
# ethos only works on the UART-based stdio; when present, don't attempt to use CDC-ACM...
6-
ifeq (,$(filter stdio_% slipdev_stdio,$(USEMODULE)))
6+
ifeq (,$(filter-out stdio_cdc_acm,$(filter stdio_% slipdev_stdio,$(USEMODULE))))
77
USEMODULE += stdio_cdc_acm
8+
# This does not *really* hinge on the choice of stdio, but this ensures
9+
# compatibility with the test suite that uses stdio_null and would conflict
10+
# with bootloader_nrfutil.
11+
# (Having the feature in is generally a good thing because as an indicator
12+
# that it the resulting program is meant to be flashed using nrfutil).
13+
FEATURES_REQUIRED += bootloader_nrfutil
814
endif
915
# ... and fall back to the UART-based stdio
1016

boards/nrf52840dongle/Makefile.include

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ ifeq (nrfutil,$(PROGRAMMER))
1818
FLASHDEPS += $(HEXFILE).zip
1919
FLASHER = nrfutil
2020
FFLAGS = dfu usb-serial --port=${PORT} --package=$(HEXFILE).zip
21-
22-
FEATURES_REQUIRED += bootloader_nrfutil
2321
endif
2422

2523
%.hex.zip: %.hex

0 commit comments

Comments
 (0)