mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
mk/boards/stm32: add JLink support
This commit is contained in:
parent
dbab3a6075
commit
c333b7e896
@ -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…
Reference in New Issue
Block a user