2016-01-21 22:47:57 +01:00
|
|
|
# define the cpu used by the OpenMote-cc2538 board
|
2014-10-22 15:49:49 +02:00
|
|
|
export CPU = cc2538
|
|
|
|
export CPU_MODEL = cc2538sf53
|
|
|
|
|
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
|
|
|
|
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
|
2018-01-17 10:59:53 +01:00
|
|
|
export FLASH_ADDR := 200000
|
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-03-27 12:28:35 +02:00
|
|
|
HEXFILE = $(BINFILE)
|
2018-05-15 11:23:44 +02:00
|
|
|
export FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
2015-12-10 05:22:39 +01:00
|
|
|
export FFLAGS = -p "$(PORT)" -e -w -v -b 460800 $(HEXFILE)
|
|
|
|
endif
|
2014-10-22 15:49:49 +02:00
|
|
|
|
2015-04-22 15:45:34 +02:00
|
|
|
# setup serial terminal
|
2016-01-27 10:47:12 +01:00
|
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|