2018-06-27 15:13:37 +02:00
|
|
|
# set default port depending on operating system
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB1
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
|
|
|
|
2019-04-09 12:46:15 +02:00
|
|
|
# this board uses openocd with a custom reset command
|
2020-11-19 18:38:41 +01:00
|
|
|
PROGRAMMER ?= openocd
|
2021-02-11 15:00:04 +01:00
|
|
|
PROGRAMMERS_SUPPORTED += openocd
|
2020-03-26 10:00:25 +01:00
|
|
|
OPENOCD_CMD_RESET_RUN =-c _reset
|
2018-04-16 19:07:04 +02:00
|
|
|
|
|
|
|
# use our own openocd script to flash since HiFive1 has reset problems.
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = $(RIOTBASE)/boards/hifive1/dist/flasher.sh
|