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
|
|
|
|
export PROGRAMMER ?= cc2538-bsl
|
|
|
|
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
|
|
# setup JLink for flashing
|
|
|
|
export JLINK_DEVICE := cc2538sf53
|
2019-03-19 15:44:25 +01:00
|
|
|
export FLASH_ADDR := 0x200000
|
2015-12-10 05:22:39 +01:00
|
|
|
export 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
|
2015-12-10 05:22:39 +01:00
|
|
|
else
|
2018-12-19 18:57:00 +01:00
|
|
|
FLASHFILE ?= $(BINFILE)
|
2019-05-17 13:52:34 +02:00
|
|
|
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
2019-10-15 14:29:51 +02:00
|
|
|
FFLAGS = -p "$(PROG_DEV)" -e -w -v -b 460800 $(FLASHFILE)
|
2015-12-10 05:22:39 +01:00
|
|
|
endif
|