2020-08-30 12:30:13 +02:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/stm32/include
|
2019-09-04 14:58:32 +02:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/blxxxpill/include
|
2018-06-12 14:55:04 +02:00
|
|
|
|
2021-02-18 18:00:47 +01:00
|
|
|
# DFU programmer specific variables
|
|
|
|
# For older versions of the DFU bootloader, set DFU_USB_ID to 1d50:6017
|
|
|
|
DFU_USB_ID ?= 1eaf:0003
|
|
|
|
DFU_ALT ?= 2
|
2022-11-26 18:26:58 +01:00
|
|
|
DFU_USE_DFUSE ?= 1
|
|
|
|
|
2021-02-18 18:00:47 +01:00
|
|
|
# If using STM32duino bootloader, this change is necessary.
|
|
|
|
# Bootloader available at
|
|
|
|
# github.com/rogerclarkmelbourne/STM32duino-bootloader/tree/master/binaries
|
|
|
|
ifeq (stm32duino,$(BOOTLOADER))
|
|
|
|
# Flashing may be easier if using a software USB reset.
|
|
|
|
# Future updates may provide USB support for stm32f1 which benefits
|
|
|
|
# from this software reset.
|
|
|
|
DFU_UTIL_FLAGS_OPTS += --reset
|
|
|
|
endif
|
|
|
|
|
2020-03-10 11:41:55 +01:00
|
|
|
ifeq (dfu-util,$(PROGRAMMER))
|
|
|
|
# Leave some space at the beginning of the flash for the bootloader
|
|
|
|
ROM_OFFSET ?= 0x2000
|
|
|
|
endif
|
2018-05-28 22:32:44 +02:00
|
|
|
|
2021-02-18 17:44:12 +01:00
|
|
|
STLINK_VERSION ?= 2
|
|
|
|
|
2019-11-12 15:53:18 +01:00
|
|
|
# Setup of programmer and serial is shared between STM32 based boards
|
|
|
|
include $(RIOTMAKE)/boards/stm32.inc.mk
|