2020-07-02 09:14:35 +02:00
|
|
|
# Set default programmer as jlink
|
|
|
|
PROGRAMMER ?= jlink
|
|
|
|
|
|
|
|
ifeq (openocd,$(PROGRAMMER))
|
2021-02-18 17:15:55 +01:00
|
|
|
OPENOCD_DEBUG_ADAPTER = jlink
|
2020-07-02 09:14:35 +02:00
|
|
|
OPENOCD_TRANSPORT = jtag
|
|
|
|
OPENOCD_PRE_FLASH_CMDS += "-c flash protect 0 1 last off"
|
|
|
|
else ifeq (jlink,$(PROGRAMMER))
|
|
|
|
# setup JLink for flashing
|
|
|
|
JLINK_DEVICE = FE310
|
|
|
|
JLINK_IF = JTAG
|
|
|
|
FLASH_ADDR = 0x20010000
|
|
|
|
else
|
|
|
|
$(error Programmer '$(PROGRAMMER)' not supported for board '$(BOARD)')
|
|
|
|
endif
|
2020-01-10 08:34:45 +01:00
|
|
|
|
|
|
|
TESTRUNNER_RESET_DELAY = 1
|
|
|
|
$(call target-export-variables,test,TESTRUNNER_RESET_DELAY)
|