1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/boards/lobaro-lorabox/Makefile.include
Gaëtan Harter 84d7e37b11
boards/lobaro-lorabox: use FLASHFILE for boards using stm32loader.py
Update to use FLASHFILE as file to be flashed on the board.
2019-06-04 16:37:32 +02:00

25 lines
635 B
Makefile

## the cpu to build for
export CPU = stm32l1
export CPU_MODEL = stm32l151cb
# add the common header files to the include path
INCLUDES += -I$(RIOTBOARD)/lobaro-lorabox/include
# configure the serial terminal
PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
FLASHER = $(RIOTTOOLS)/stm32loader/stm32loader.py
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 $(FLASHFILE)
TERMFLAGS += --set-rts 0