Merge pull request #14017 from haukepetersen/add_stm32_jlink
mk/boards/stm32: add JLink support
This commit is contained in:
commit
7503baf6de
@ -1,6 +1,6 @@
|
||||
PROGRAMMER ?= openocd
|
||||
|
||||
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd stm32flash
|
||||
PROGRAMMERS_SUPPORTED := bmp dfu-util openocd stm32flash jlink
|
||||
|
||||
ifeq (,$(filter $(PROGRAMMER), $(PROGRAMMERS_SUPPORTED)))
|
||||
$(error Programmer $(PROGRAMMER) not supported)
|
||||
@ -37,6 +37,11 @@ ifeq (bmp,$(PROGRAMMER))
|
||||
include $(RIOTMAKE)/tools/bmp.inc.mk
|
||||
endif
|
||||
|
||||
ifeq (jlink,$(PROGRAMMER))
|
||||
JLINK_DEVICE ?= $(CPU_MODEL)
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
endif
|
||||
|
||||
ifeq (dfu-util,$(PROGRAMMER))
|
||||
# optionally, use dfu-util to flash via usb
|
||||
# note: needs a bootloader flashed before, config below is compatible
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user