Merge pull request #11725 from benpicco/sam0-jlink
sam0: allow flashing with JLinkExe
This commit is contained in:
commit
cdcdaa63ce
@ -24,8 +24,15 @@ DEBUG_ADAPTER ?= dap
|
|||||||
|
|
||||||
# EDBG can only be used with a compatible Atmel programmer
|
# EDBG can only be used with a compatible Atmel programmer
|
||||||
ifeq ($(DEBUG_ADAPTER),dap)
|
ifeq ($(DEBUG_ADAPTER),dap)
|
||||||
# set this to either openocd or edbg
|
# set this to either openocd, jlink or edbg
|
||||||
PROGRAMMER ?= edbg
|
PROGRAMMER ?= edbg
|
||||||
|
else ifeq ($(DEBUG_ADAPTER),jlink)
|
||||||
|
# only use JLinkExe if it's installed
|
||||||
|
ifneq (,$(shell command -v JLinkExe)))
|
||||||
|
PROGRAMMER ?= jlink
|
||||||
|
else
|
||||||
|
PROGRAMMER ?= openocd
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
endif
|
endif
|
||||||
@ -37,5 +44,12 @@ ifeq ($(PROGRAMMER),edbg)
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# this board uses J-Link for debug and possibly flashing
|
||||||
|
ifeq ($(PROGRAMMER),jlink)
|
||||||
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||||
|
endif
|
||||||
|
|
||||||
# this board uses openocd for debug and possibly flashing
|
# this board uses openocd for debug and possibly flashing
|
||||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
ifeq ($(PROGRAMMER),openocd)
|
||||||
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||||
|
endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user