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*)))
|
|
|
|
|
2020-12-01 17:27:14 +01:00
|
|
|
# Configure programmer
|
|
|
|
PROGRAMMER ?= stm32loader
|
2018-09-18 18:07:07 +02:00
|
|
|
|
|
|
|
# -u: use sector by sector erase
|
|
|
|
# -S: swap RTS and DTR
|
|
|
|
# -l 0x1ff: amount of sectors to erase
|
2020-12-01 17:27:14 +01:00
|
|
|
STM32LOADER_FLAGS ?= -u -S -l 0x1ff
|
2018-09-18 18:07:07 +02:00
|
|
|
|
2019-08-27 12:12:16 +02:00
|
|
|
PYTERMFLAGS += --set-rts 0
|
2021-02-11 14:21:17 +01:00
|
|
|
|
|
|
|
# stm32loader programmer is supported
|
|
|
|
PROGRAMMERS_SUPPORTED += stm32loader
|