2021-02-11 15:00:04 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += jlink openocd
|
2020-07-02 09:14:35 +02:00
|
|
|
|
2023-01-08 19:48:24 +01:00
|
|
|
# OpenOCD parameters
|
|
|
|
OPENOCD_DEBUG_ADAPTER := jlink
|
|
|
|
OPENOCD_TRANSPORT := jtag
|
|
|
|
OPENOCD_PRE_FLASH_CMDS += "-c flash protect 0 1 last off"
|
|
|
|
|
|
|
|
# setup JLink for flashing
|
|
|
|
JLINK_DEVICE := FE310
|
|
|
|
JLINK_IF := JTAG
|
|
|
|
FLASH_ADDR := 0x20010000
|
|
|
|
|
|
|
|
# keep name of `JLINK` in sync with script jlink.sh in $(RIOTTOOLS)/jlink
|
|
|
|
# Default to J-Link as programmer when installed, otherwise go for OpenOCD
|
|
|
|
JLINK ?= JLinkExe
|
|
|
|
ifneq (,$(shell command -v $(JLINK)))
|
|
|
|
PROGRAMMER ?= jlink
|
|
|
|
else
|
|
|
|
PROGRAMMER ?= openocd
|
2020-07-02 09:14:35 +02:00
|
|
|
endif
|
2020-01-10 08:34:45 +01:00
|
|
|
|
|
|
|
TESTRUNNER_RESET_DELAY = 1
|
|
|
|
$(call target-export-variables,test,TESTRUNNER_RESET_DELAY)
|