1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/cc2538: use FLASHFILE for boards using cc2538-bsl.py

Update to use FLASHFILE as file to be flashed on the board.
This commit is contained in:
Gaëtan Harter 2018-12-19 18:57:00 +01:00
parent d58d8b375c
commit 9e9f8637e9
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B
4 changed files with 11 additions and 11 deletions

View File

@ -24,14 +24,14 @@ export PROGRAMMER ?= cc2538-bsl
ifeq ($(PROGRAMMER),cc2538-bsl)
export FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT)" -e -w -v $(HEXFILE)
export FFLAGS = -p "$(PORT)" -e -w -v $(FLASHFILE)
else ifeq ($(PROGRAMMER),jlink)
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
export FFLAGS = $(BINDIR) $(HEXFILE)
export FFLAGS = $(BINDIR) $(FLASHFILE)
endif
OFLAGS = --gap-fill 0xff
HEXFILE = $(BINFILE)
FLASHFILE ?= $(BINFILE)
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
export RESET_FLAGS = $(BINDIR)

View File

@ -14,10 +14,10 @@ ifeq ($(PROGRAMMER),cc2538-bsl)
endif
export RESET = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py -p "$(PORT_BSL)"
export FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT_BSL)" -e -w -v -b 115200 $(HEXFILE)
export FFLAGS = -p "$(PORT_BSL)" -e -w -v -b 115200 $(FLASHFILE)
else ifeq ($(PROGRAMMER),jlink)
export FLASHER = $(RIOTBOARD)/common/remote/dist/flash.sh
export FFLAGS = $(BINDIR) $(HEXFILE)
export FFLAGS = $(BINDIR) $(FLASHFILE)
export DEBUGGER = $(RIOTBOARD)/common/remote/dist/debug.sh
export DEBUGSERVER = JLinkGDBServer -device CC2538SF53
export RESET = $(RIOTBOARD)/common/remote/dist/reset.sh
@ -25,7 +25,7 @@ else ifeq ($(PROGRAMMER),jlink)
endif
OFLAGS = --gap-fill 0xff
HEXFILE = $(BINFILE)
FLASHFILE ?= $(BINFILE)
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb

View File

@ -17,16 +17,16 @@ ifeq ($(PROGRAMMER),cc2538-bsl)
PORT_BSL ?= $(PORT_DARWIN)
endif
export FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT_BSL)" --bootloader-invert-lines -e -w -v -b 460800 $(HEXFILE)
export FFLAGS = -p "$(PORT_BSL)" --bootloader-invert-lines -e -w -v -b 460800 $(FLASHFILE)
else ifeq ($(PROGRAMMER),jlink)
export FLASHER = $(RIOTBOARD)/$(BOARD)/dist/flash.sh
export FFLAGS = $(BINDIR) $(HEXFILE)
export FFLAGS = $(BINDIR) $(FLASHFILE)
export DEBUGGER = $(RIOTBOARD)/$(BOARD)/dist/debug.sh
export DEBUGSERVER = JLinkGDBServer -device CC2538SF53
export RESET = $(RIOTBOARD)/$(BOARD)/dist/reset.sh
endif
export HEXFILE = $(ELFFILE:.elf=.bin)
FLASHFILE ?= $(BINFILE)
export DEBUGGER_FLAGS = $(BINDIR) $(ELFFILE)
export RESET_FLAGS = $(BINDIR)
export OBJDUMPFLAGS += --disassemble --source --disassembler-options=force-thumb

View File

@ -17,9 +17,9 @@ ifeq ($(PROGRAMMER),jlink)
export TUI := 1
include $(RIOTMAKE)/tools/jlink.inc.mk
else
HEXFILE = $(BINFILE)
FLASHFILE ?= $(BINFILE)
export FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
export FFLAGS = -p "$(PORT)" -e -w -v -b 460800 $(HEXFILE)
export FFLAGS = -p "$(PORT)" -e -w -v -b 460800 $(FLASHFILE)
endif
# setup serial terminal