1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles/boards/stm32.inc.mk: add stm32flash support

This commit is contained in:
Corentin 'Kmikaz' Vigourt 2020-03-09 15:46:51 +01:00
parent 54cafc5125
commit a4976c3333

View File

@ -1,6 +1,6 @@
PROGRAMMER ?= openocd
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd stm32flash
ifeq (,$(filter $(PROGRAMMER), $(PROGRAMMERS_SUPPORTED)))
$(error Programmer $(PROGRAMMER) not supported)
@ -56,3 +56,11 @@ ifeq (dfu-util,$(PROGRAMMER))
DFU_FLAGS ?= -a 2
FFLAGS = -d $(DFU_USB_ID) $(DFU_FLAGS) -D $(FLASHFILE)
endif
ifeq (stm32flash,$(PROGRAMMER))
FLASHER = stm32flash
DEBUGGER =
FLASHFILE ?= $(BINFILE)
PROG_BAUD ?= 57600
FFLAGS = -b $(PROG_BAUD) -w $(FLASHFILE) -g 0x0 $(PORT)
endif