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:
parent
18b1e16d3a
commit
ef43ed7161
@ -4,6 +4,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|||||||
|
|
||||||
# this board uses openocd with a custom reset command
|
# this board uses openocd with a custom reset command
|
||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
|
PROGRAMMERS_SUPPORTED += openocd
|
||||||
OPENOCD_CMD_RESET_RUN =-c _reset
|
OPENOCD_CMD_RESET_RUN =-c _reset
|
||||||
|
|
||||||
# use our own openocd script to flash since HiFive1 has reset problems.
|
# use our own openocd script to flash since HiFive1 has reset problems.
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# Set default programmer as jlink
|
# Set default programmer as jlink
|
||||||
PROGRAMMER ?= jlink
|
PROGRAMMER ?= jlink
|
||||||
|
PROGRAMMERS_SUPPORTED += jlink openocd
|
||||||
|
|
||||||
ifeq (openocd,$(PROGRAMMER))
|
ifeq (openocd,$(PROGRAMMER))
|
||||||
OPENOCD_DEBUG_ADAPTER = jlink
|
OPENOCD_DEBUG_ADAPTER = jlink
|
||||||
@ -10,8 +11,6 @@ else ifeq (jlink,$(PROGRAMMER))
|
|||||||
JLINK_DEVICE = FE310
|
JLINK_DEVICE = FE310
|
||||||
JLINK_IF = JTAG
|
JLINK_IF = JTAG
|
||||||
FLASH_ADDR = 0x20010000
|
FLASH_ADDR = 0x20010000
|
||||||
else
|
|
||||||
$(error Programmer '$(PROGRAMMER)' not supported for board '$(BOARD)')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
TESTRUNNER_RESET_DELAY = 1
|
TESTRUNNER_RESET_DELAY = 1
|
||||||
|
Loading…
Reference in New Issue
Block a user