2016-06-29 16:30:13 +02:00
|
|
|
# define the cpu used by the RE-mote board
|
2015-08-08 15:59:25 +02:00
|
|
|
export CPU = cc2538
|
2016-06-29 16:30:13 +02:00
|
|
|
export CPU_MODEL = cc2538sf53
|
2015-08-08 15:59:25 +02:00
|
|
|
|
|
|
|
# define the default flash-tool
|
|
|
|
export PROGRAMMER ?= cc2538-bsl
|
|
|
|
|
|
|
|
ifeq ($(PROGRAMMER),cc2538-bsl)
|
|
|
|
OS := $(shell uname)
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
PORT_BSL ?= $(PORT_LINUX)
|
|
|
|
else ifeq ($(OS),Darwin)
|
|
|
|
PORT_BSL ?= $(PORT_DARWIN)
|
|
|
|
endif
|
2016-08-30 21:39:39 +02:00
|
|
|
export FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
|
2015-08-08 15:59:25 +02:00
|
|
|
export FFLAGS = -p "$(PORT_BSL)" -e -w -v -b 115200 $(HEXFILE)
|
|
|
|
else ifeq ($(PROGRAMMER),jlink)
|
|
|
|
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
|
|
|
|
export FFLAGS = $(BINDIR) $(HEXFILE)
|
|
|
|
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
|
|
|
|
export DEBUGSERVER = JLinkGDBServer -device CC2538SF53
|
|
|
|
export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
|
|
|
|
endif
|
|
|
|
|
2018-03-27 12:28:35 +02:00
|
|
|
OFLAGS = --gap-fill 0xff
|
|
|
|
HEXFILE = $(BINFILE)
|
2015-08-08 15:59:25 +02:00
|
|
|
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
|
|
|
export RESET_FLAGS = $(BINDIR)
|
|
|
|
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb
|
|
|
|
|
2017-11-16 12:03:03 +01:00
|
|
|
# include common remote includes
|
|
|
|
export INCLUDES += -I$(RIOTBOARD)/common/remote/include
|
2016-06-29 16:30:13 +02:00
|
|
|
|
2015-08-08 15:59:25 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|