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

boards/cc2538: use common cc2538-bsl handling file

This commit is contained in:
Alexandre Abadie 2020-03-06 20:51:22 +01:00
parent a83510c354
commit b4418426ba
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
4 changed files with 9 additions and 17 deletions

View File

@ -19,9 +19,7 @@ RESET ?= $(RIOTBOARD)/cc2538dk/dist/reset.sh
PROGRAMMER ?= cc2538-bsl
ifeq ($(PROGRAMMER),cc2538-bsl)
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
FLASHDEPS += $(FLASHER)
FFLAGS = -p "$(PROG_DEV)" -e -w -v $(FLASHFILE)
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
else ifeq ($(PROGRAMMER),jlink)
FLASHER = $(RIOTBOARD)/cc2538dk/dist/flash.sh
FFLAGS = $(BINDIR) $(FLASHFILE)

View File

@ -11,10 +11,8 @@ ifneq (,$(PORT_BSL))
endif
ifeq ($(PROGRAMMER),cc2538-bsl)
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py -p "$(PROG_DEV)"
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
FLASHDEPS += $(FLASHER)
FFLAGS = -p "$(PROG_DEV)" -e -w -v -b 115200 $(FLASHFILE)
PROG_BAUD ?= 115200
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
else ifeq ($(PROGRAMMER),jlink)
FLASHER = $(RIOTBOARD)/common/remote/dist/flash.sh
FFLAGS = $(BINDIR) $(FLASHFILE)

View File

@ -16,11 +16,9 @@ endif
ifeq ($(PROGRAMMER),cc2538-bsl)
FLASHFILE ?= $(HEXFILE)
FLASHER = $(RIOTBASE)/dist/tools/cc2538-bsl/cc2538-bsl.py
FLASHDEPS += $(FLASHER)
FFLAGS = -p "$(PROG_DEV)" --bootloader-invert-lines -e -w -v -b 460800 $(FLASHFILE)
RESET ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
RESET_FLAGS ?= -p "$(PROG_DEV)" --bootloader-invert-lines
FFLAGS_OPTS ?= --bootloader-invert-lines
PROG_BAUD ?= 460800
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
else ifeq ($(PROGRAMMER),jlink)
# Special flashing and reset scripts are required due to board hardware
export FLASH_ADDR = 0x200000

View File

@ -14,9 +14,7 @@ ifeq ($(PROGRAMMER),jlink)
export JLINK_IF := JTAG
export TUI := 1
include $(RIOTMAKE)/tools/jlink.inc.mk
else
FLASHFILE ?= $(BINFILE)
FLASHER = $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
FLASHDEPS += $(FLASHER)
FFLAGS = -p "$(PROG_DEV)" -e -w -v -b 460800 $(FLASHFILE)
else ifeq ($(PROGRAMMER),cc2538-bsl)
PROG_BAUD ?= 460800
include $(RIOTMAKE)/tools/cc2538-bsl.inc.mk
endif