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
|
2019-06-06 16:21:49 +02:00
|
|
|
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py -p "$(PORT_BSL)"
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
|
|
|
FFLAGS = -p "$(PORT_BSL)" -e -w -v -b 115200 $(FLASHFILE)
|
2015-08-08 15:59:25 +02:00
|
|
|
else ifeq ($(PROGRAMMER),jlink)
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = $(RIOTBOARD)/common/remote/dist/flash.sh
|
|
|
|
FFLAGS = $(BINDIR) $(FLASHFILE)
|
2019-05-17 13:52:34 +02:00
|
|
|
DEBUGGER = $(RIOTBOARD)/common/remote/dist/debug.sh
|
|
|
|
DEBUGSERVER = JLinkGDBServer -device CC2538SF53
|
2019-06-06 16:21:49 +02:00
|
|
|
RESET ?= $(RIOTBOARD)/common/remote/dist/reset.sh
|
|
|
|
RESET_FLAGS ?= $(BINDIR)
|
2015-08-08 15:59:25 +02:00
|
|
|
endif
|
|
|
|
|
2018-03-27 12:28:35 +02:00
|
|
|
OFLAGS = --gap-fill 0xff
|
2018-12-19 18:57:00 +01:00
|
|
|
FLASHFILE ?= $(BINFILE)
|
2019-05-17 13:52:34 +02:00
|
|
|
DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
|
2015-08-08 15:59:25 +02:00
|
|
|
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
|