boards/blxxxpill: rework programmer specific configuration

This commit is contained in:
Alexandre Abadie 2020-03-10 11:41:55 +01:00
parent f56470925b
commit 631fbd9fc8
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -1,12 +1,15 @@
INCLUDES += -I$(RIOTBOARD)/common/blxxxpill/include INCLUDES += -I$(RIOTBOARD)/common/blxxxpill/include
# For older versions of the DFU bootloader, set DFU_USB_ID to 1d50:6017 ifeq (dfu-util,$(PROGRAMMER))
DFU_USB_ID ?= 1eaf:0003 # For older versions of the DFU bootloader, set DFU_USB_ID to 1d50:6017
DFU_ALT ?= 2 DFU_USB_ID ?= 1eaf:0003
DFU_ALT ?= 2
ROM_OFFSET ?= 0x2000 # Leave some space at the beginning of the flash for the bootloader
ROM_OFFSET ?= 0x2000
STLINK_VERSION ?= 2 else ifeq (openocd,$(PROGRAMMER))
STLINK_VERSION ?= 2
endif
# Setup of programmer and serial is shared between STM32 based boards # Setup of programmer and serial is shared between STM32 based boards
include $(RIOTMAKE)/boards/stm32.inc.mk include $(RIOTMAKE)/boards/stm32.inc.mk