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:
parent
3af10a604e
commit
e6776ae8d1
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user