1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/hifive1: define supported programmers

This commit is contained in:
Alexandre Abadie 2021-02-11 15:00:04 +01:00
parent 18b1e16d3a
commit ef43ed7161
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# this board uses openocd with a custom reset command
PROGRAMMER ?= openocd
PROGRAMMERS_SUPPORTED += openocd
OPENOCD_CMD_RESET_RUN =-c _reset
# use our own openocd script to flash since HiFive1 has reset problems.

View File

@ -1,5 +1,6 @@
# Set default programmer as jlink
PROGRAMMER ?= jlink
PROGRAMMERS_SUPPORTED += jlink openocd
ifeq (openocd,$(PROGRAMMER))
OPENOCD_DEBUG_ADAPTER = jlink
@ -10,8 +11,6 @@ else ifeq (jlink,$(PROGRAMMER))
JLINK_DEVICE = FE310
JLINK_IF = JTAG
FLASH_ADDR = 0x20010000
else
$(error Programmer '$(PROGRAMMER)' not supported for board '$(BOARD)')
endif
TESTRUNNER_RESET_DELAY = 1