Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 8300c11

Browse files
committed
Fix for issue #564: nrf5-app.mk does not consider JLINK_SN on targets flash_softdevice and erase
1 parent 27503bf commit 8300c11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/nrf5/nrf5-app.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,14 @@ endef
274274
flash-softdevice flash_softdevice :
275275
@if test -z "$(SOFTDEVICE_IMAGE)"; then echo "SoftDevice image not found in $(SOFTDEVICE_IMAGE_DIR)"; false; fi
276276
@echo "FLASH $(SOFTDEVICE_IMAGE)"
277-
$(NO_ECHO)$(NRFJPROG) -f nrf52 --program $(SOFTDEVICE_IMAGE) --sectorerase
277+
$(NO_ECHO)$(NRFJPROG) $(NRFJPROG_FLAGS) --program $(SOFTDEVICE_IMAGE) --sectorerase
278278
@echo "RESET DEVICE"
279-
$(NO_ECHO)$(NRFJPROG) -f nrf52 --reset
279+
$(NO_ECHO)$(NRFJPROG) $(NRFJPROG_FLAGS) --reset
280280

281281
# Erase device
282282
erase :
283283
@echo "ERASE DEVICE"
284-
$(NO_ECHO)$(NRFJPROG) -f nrf52 --eraseall
284+
$(NO_ECHO)$(NRFJPROG) $(NRFJPROG_FLAGS) --eraseall
285285

286286
# Clean build output
287287
clean ::

0 commit comments

Comments
 (0)