2020-08-30 22:17:23 +02:00
|
|
|
# add the common header files to the include path
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2014-06-24 23:37:10 +02:00
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2014-06-24 23:37:10 +02:00
|
|
|
|
2019-05-31 11:43:47 +02:00
|
|
|
DEBUG_ADAPTER ?= stlink
|
|
|
|
STLINK_VERSION ?= 2
|
2017-10-06 14:59:07 +02:00
|
|
|
|
2019-02-25 14:41:38 +01:00
|
|
|
# The board can become un-flashable after some execution,
|
|
|
|
# use connect_assert_srst to always be able to flash or reset the board.
|
2020-02-24 10:26:14 +01:00
|
|
|
OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
|
2019-02-25 14:41:38 +01:00
|
|
|
|
2015-04-22 15:45:35 +02:00
|
|
|
# this board uses openocd
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|