2015-08-08 15:59:25 +02:00
|
|
|
# define the default flash-tool
|
2019-11-27 14:31:01 +01:00
|
|
|
PROGRAMMER ?= cc2538-bsl
|
2015-08-08 15:59:25 +02:00
|
|
|
|
2019-10-15 14:24:05 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
|
|
|
|
# For backward compatibility
|
|
|
|
ifneq (,$(PORT_BSL))
|
|
|
|
$(warning Warning! PORT_BSL is deprecated use PROG_DEV)
|
|
|
|
PROG_DEV ?= $(PORT_BSL)
|
|
|
|
endif
|
|
|
|
|
2015-08-08 15:59:25 +02:00
|
|
|
ifeq ($(PROGRAMMER),cc2538-bsl)
|
2020-03-06 20:51:22 +01:00
|
|
|
PROG_BAUD ?= 115200
|
|
|
|
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
|
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)
|
2019-08-27 16:06:41 +02:00
|
|
|
OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb
|
2015-08-08 15:59:25 +02:00
|
|
|
|
2017-11-16 12:03:03 +01:00
|
|
|
# include common remote includes
|
2019-08-27 16:06:41 +02:00
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/remote/include
|