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

boards/lobaro-lorabox: use FLASHFILE for boards using stm32loader.py

Update to use FLASHFILE as file to be flashed on the board.
This commit is contained in:
Gaëtan Harter 2018-12-19 19:05:01 +01:00
parent eb3398d294
commit 84d7e37b11
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -13,14 +13,12 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
include $(RIOTMAKE)/tools/serial.inc.mk
FLASHER = $(RIOTTOOLS)/stm32loader/stm32loader.py
# needed for now so the build system generates the .bin file
HEXFILE = $(BINFILE)
FLASHFILE ?= $(BINFILE)
# -e: erase
# -u: use sector by sector erase
# -S: swap RTS and DTR
# -l 0x1ff: amount of sectors to erase
FFLAGS += -p $(PORT) -e -u -S -l 0x1ff -w $(BINFILE)
FFLAGS += -p $(PORT) -e -u -S -l 0x1ff -w $(FLASHFILE)
TERMFLAGS += --set-rts 0