2014-11-04 14:46:16 +01:00
|
|
|
# define the cpu used by the stm32f4-discovery board
|
|
|
|
export CPU = stm32f4
|
|
|
|
export CPU_MODEL = stm32f415rg
|
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# define the default port depending on the host OS
|
|
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
2016-02-13 21:51:08 +01:00
|
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
2014-11-04 14:46:16 +01:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2015-04-22 15:45:34 +02:00
|
|
|
|
|
|
|
# st-flash
|
2014-11-04 14:46:16 +01:00
|
|
|
export FLASHER = st-flash
|
|
|
|
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
|
|
|
export DEBUGSERVER = st-util
|
|
|
|
|
2015-05-28 15:09:17 +02:00
|
|
|
# define st-flash parameters
|
2018-03-27 12:28:35 +02:00
|
|
|
HEXFILE = $(BINFILE)
|
2018-03-26 17:14:40 +02:00
|
|
|
export FFLAGS = write $(HEXFILE) 0x8000000
|
|
|
|
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
|