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.usbserial*)))
|
2014-10-22 15:49:49 +02:00
|
|
|
|
2019-10-15 14:29:51 +02:00
|
|
|
# setup serial terminal
|
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
2015-12-10 05:22:39 +01:00
|
|
|
# Set default flash tool
|
2019-11-27 14:31:01 +01:00
|
|
|
PROGRAMMER ?= cc2538-bsl
|
2015-12-10 05:22:39 +01:00
|
|
|
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
|
|
# setup JLink for flashing
|
2020-03-03 11:56:38 +01:00
|
|
|
JLINK_DEVICE = cc2538sf53
|
2020-03-03 16:22:30 +01:00
|
|
|
FLASH_ADDR = 0x200000
|
2020-03-03 16:14:54 +01:00
|
|
|
JLINK_IF = JTAG
|
2016-07-08 03:59:20 +02:00
|
|
|
export TUI := 1
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
2020-03-06 20:51:22 +01:00
|
|
|
else ifeq ($(PROGRAMMER),cc2538-bsl)
|
|
|
|
PROG_BAUD ?= 460800
|
|
|
|
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
|
2015-12-10 05:22:39 +01:00
|
|
|
endif
|
2020-03-24 09:27:59 +01:00
|
|
|
|
|
|
|
# include common cc2538 includes
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/cc2538/include
|