# define the default flash-tool PROGRAMMER ?= cc2538-bsl # 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 ifeq ($(PROGRAMMER),cc2538-bsl) PROG_BAUD ?= 460800 else ifeq ($(PROGRAMMER),jlink) # Special flashing and reset scripts are required due to board hardware FLASH_ADDR = 0x200000 JLINK_DEVICE = CC2538SF53 JLINK_IF = JTAG JLINK_RESET_FILE = $(RIOTBOARD)/common/cc2538/dist/hw_reset.seg endif OFLAGS = --gap-fill 0xff FLASHFILE ?= $(BINFILE) OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb # include common cc2538 includes INCLUDES += -I$(RIOTBOARD)/common/cc2538/include