makefiles/boards/stm32.inc.mk: add stm32flash support
This commit is contained in:
parent
54cafc5125
commit
a4976c3333
@ -1,6 +1,6 @@
|
|||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
|
|
||||||
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd
|
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd stm32flash
|
||||||
|
|
||||||
ifeq (,$(filter $(PROGRAMMER), $(PROGRAMMERS_SUPPORTED)))
|
ifeq (,$(filter $(PROGRAMMER), $(PROGRAMMERS_SUPPORTED)))
|
||||||
$(error Programmer $(PROGRAMMER) not supported)
|
$(error Programmer $(PROGRAMMER) not supported)
|
||||||
@ -56,3 +56,11 @@ ifeq (dfu-util,$(PROGRAMMER))
|
|||||||
DFU_FLAGS ?= -a 2
|
DFU_FLAGS ?= -a 2
|
||||||
FFLAGS = -d $(DFU_USB_ID) $(DFU_FLAGS) -D $(FLASHFILE)
|
FFLAGS = -d $(DFU_USB_ID) $(DFU_FLAGS) -D $(FLASHFILE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq (stm32flash,$(PROGRAMMER))
|
||||||
|
FLASHER = stm32flash
|
||||||
|
DEBUGGER =
|
||||||
|
FLASHFILE ?= $(BINFILE)
|
||||||
|
PROG_BAUD ?= 57600
|
||||||
|
FFLAGS = -b $(PROG_BAUD) -w $(FLASHFILE) -g 0x0 $(PORT)
|
||||||
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user