2017-05-18 15:46:38 +02:00
|
|
|
# configure the serial interface
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2014-09-17 15:08:57 +02:00
|
|
|
|
2019-10-15 14:29:51 +02:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = dfu-util
|
2019-05-17 13:52:34 +02:00
|
|
|
DEBUGGER = # spark core has no debugger
|
2019-06-06 16:23:20 +02:00
|
|
|
RESET ?= # dfu-util has no support for resetting the device
|
2014-09-17 15:08:57 +02:00
|
|
|
|
2018-12-19 19:00:04 +01:00
|
|
|
FLASHFILE ?= $(BINFILE)
|
|
|
|
FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D $(FLASHFILE)
|
2014-09-17 15:08:57 +02:00
|
|
|
|
2017-10-24 14:24:19 +02:00
|
|
|
# Skip the space needed by the embedded bootloader
|
|
|
|
export ROM_OFFSET ?= 0x5000
|
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# this board uses openocd
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|