Skip to content
Snippets Groups Projects
Unverified Commit bcb438a6 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #9788 from cladmi/pr/edbg/flashbin

edbg.inc.mk: allow flashing with an offset in rom without erasing all ROM
parents 5b87b1d6 e6776ae8
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,11 @@ HEXFILE = $(BINFILE) ...@@ -10,7 +10,11 @@ HEXFILE = $(BINFILE)
ifneq (,$(DEBUG_ADAPTER_ID)) ifneq (,$(DEBUG_ADAPTER_ID))
EDBG_ARGS += --serial $(DEBUG_ADAPTER_ID) EDBG_ARGS += --serial $(DEBUG_ADAPTER_ID)
endif endif
FFLAGS ?= $(EDBG_ARGS) -t $(EDBG_DEVICE_TYPE) -b -e -v -p -f $(HEXFILE)
# Set offset according to IMAGE_OFFSET if it's defined
EDBG_ARGS += $(addprefix --offset ,$(IMAGE_OFFSET))
FFLAGS ?= $(EDBG_ARGS) -t $(EDBG_DEVICE_TYPE) -b -v -p -f $(HEXFILE)
ifeq ($(RIOT_EDBG),$(FLASHER)) ifeq ($(RIOT_EDBG),$(FLASHER))
FLASHDEPS += $(RIOT_EDBG) FLASHDEPS += $(RIOT_EDBG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment