2019-07-05 19:53:21 +02:00
|
|
|
# we use shared STM32 configuration snippets
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
|
|
|
|
2017-03-31 11:31:22 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
|
|
|
|
|
|
# set the default id
|
2020-02-22 10:27:20 +01:00
|
|
|
ID ?= 0483:df11
|
2017-03-31 11:31:22 +02:00
|
|
|
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = dfu-util
|
2019-05-17 13:52:34 +02:00
|
|
|
DEBUGGER = # dfu-util has no debugger
|
2019-06-06 16:22:36 +02:00
|
|
|
RESET ?= # dfu-util has no support for resetting the device
|
2017-03-31 11:31:22 +02:00
|
|
|
|
2018-12-19 19:00:04 +01:00
|
|
|
FLASHFILE ?= $(BINFILE)
|
|
|
|
FFLAGS = -d $(ID) -a 0 -s 0x08000000:leave -D $(FLASHFILE)
|
2017-03-31 11:31:22 +02:00
|
|
|
|
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|