Skip to content
Snippets Groups Projects
Commit 87bdf43b authored by kYc0o's avatar kYc0o
Browse files

Merge pull request #4460 from aeneby/openmote-flash

Support flashing OpenMote via serial interface with 'make flash'
parents 78136ff2 d7377cde
Branches
No related tags found
No related merge requests found
...@@ -6,11 +6,21 @@ export CPU_MODEL = cc2538sf53 ...@@ -6,11 +6,21 @@ export CPU_MODEL = cc2538sf53
PORT_LINUX ?= /dev/ttyUSB0 PORT_LINUX ?= /dev/ttyUSB0
PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1) PORT_DARWIN ?= $(shell ls -1 /dev/tty.usbserial-* | head -n 1)
# setup JLink for flashing # Set default flash tool
export JLINK_DEVICE := cc2538sf53 export PROGRAMMER ?= cc2538-bsl
export JLINK_FLASH_ADDR := 200000
export JLINK_IF := JTAG ifeq ($(PROGRAMMER),jlink)
include $(RIOTBOARD)/Makefile.include.jlink # setup JLink for flashing
export JLINK_DEVICE := cc2538sf53
export JLINK_FLASH_ADDR := 200000
export JLINK_IF := JTAG
include $(RIOTBOARD)/Makefile.include.jlink
else
export OFLAGS = -O binary
export HEXFILE = $(ELFFILE:.elf=.bin)
export FLASHER = python $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT)" -e -w -v -b 460800 $(HEXFILE)
endif
# setup serial terminal # setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial include $(RIOTBOARD)/Makefile.include.serial
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment