2018-09-18 18:07:07 +02:00
|
|
|
# add the common header files to the include path
|
2019-07-05 19:35:29 +02:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
2018-09-18 18:07:07 +02:00
|
|
|
|
|
|
|
# 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
|
2018-12-19 19:05:01 +01:00
|
|
|
FLASHFILE ?= $(BINFILE)
|
2018-09-18 18:07:07 +02:00
|
|
|
|
|
|
|
# -e: erase
|
|
|
|
# -u: use sector by sector erase
|
|
|
|
# -S: swap RTS and DTR
|
|
|
|
# -l 0x1ff: amount of sectors to erase
|
2019-10-15 14:29:51 +02:00
|
|
|
FFLAGS += -p $(PROG_DEV) -e -u -S -l 0x1ff -w $(FLASHFILE)
|
2018-09-18 18:07:07 +02:00
|
|
|
|
2019-08-27 12:12:16 +02:00
|
|
|
PYTERMFLAGS += --set-rts 0
|