1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/boards/stm32.ink.mk: Use ROM_OFFSET with stm32flash

This commit is contained in:
Corentin 'Kmikaz' Vigourt 2020-03-12 12:48:38 +01:00
parent 1e8037670b
commit 6a559f1924

View File

@ -58,9 +58,11 @@ ifeq (dfu-util,$(PROGRAMMER))
endif
ifeq (stm32flash,$(PROGRAMMER))
ROM_OFFSET ?= 0x0
FLASHER = stm32flash
DEBUGGER =
FLASHFILE ?= $(BINFILE)
PROG_BAUD ?= 57600
FFLAGS = -b $(PROG_BAUD) -w $(FLASHFILE) -g 0x0 $(PORT)
BIN_ADDR ?= $(shell echo $$(($(ROM_START_ADDR) + $(ROM_OFFSET))))
FFLAGS = -v -b $(PROG_BAUD) -w $(FLASHFILE) -S $(BIN_ADDR) -g $(BIN_ADDR) $(PORT)
endif