2014-09-17 15:08:57 +02:00
|
|
|
## the cpu to build for
|
|
|
|
export CPU = stm32f1
|
|
|
|
export CPU_MODEL = stm32f103cb
|
|
|
|
|
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*)))
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2014-09-17 15:08:57 +02:00
|
|
|
|
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-03-27 12:28:35 +02:00
|
|
|
HEXFILE = $(BINFILE)
|
2019-05-17 13:52:34 +02:00
|
|
|
FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)"
|
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
|