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

edbg.inc.mk: allow flashing with an offset in rom

Allow flashing with an offset in ROM from the rom base address.
It reuses `IMAGE_OFFSET` configuration variable name from `openocd.sh`.

This will allow flashing multiple images with different flash operations.
parent 3af10a60
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,10 @@ HEXFILE = $(BINFILE)
ifneq (,$(DEBUG_ADAPTER_ID))
EDBG_ARGS += --serial $(DEBUG_ADAPTER_ID)
endif
# 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))
......
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