1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00

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.
This commit is contained in:
Kaspar Schleiser 2018-08-16 16:36:05 +02:00 committed by cladmi
parent 3af10a604e
commit e6776ae8d1
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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))