2021-02-18 18:10:51 +01:00
|
|
|
CC2538_BSL_FLASHFILE ?= $(BINFILE)
|
|
|
|
FLASHFILE ?= $(CC2538_BSL_FLASHFILE)
|
2021-02-09 18:49:03 +01:00
|
|
|
CC2538_BSL ?= $(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py
|
2020-03-06 20:50:51 +01:00
|
|
|
PROG_BAUD ?= 500000 # default value in cc2538-bsl
|
2020-11-06 16:53:21 +01:00
|
|
|
|
2021-02-18 17:54:53 +01:00
|
|
|
CC2538_BSL_FLAGS_OPTS ?=
|
2021-02-09 18:49:03 +01:00
|
|
|
CC2538_BSL_FLAGS = $(if $(IMAGE_OFFSET), -a $(shell printf "0x%08x" $$(($(IMAGE_OFFSET) + $(ROM_START_ADDR)))))
|
2021-02-18 17:54:53 +01:00
|
|
|
CC2538_BSL_FLAGS += -p "$(PROG_DEV)" $(CC2538_BSL_FLAGS_OPTS) --write-erase -v -b $(PROG_BAUD) $(FLASHFILE)
|
2021-02-09 18:49:03 +01:00
|
|
|
|
|
|
|
FLASHER ?= $(CC2538_BSL)
|
|
|
|
FFLAGS ?= $(CC2538_BSL_FLAGS)
|
2020-03-06 20:50:51 +01:00
|
|
|
|
2021-02-18 17:54:53 +01:00
|
|
|
RESET ?= $(FLASHER) -p "$(PROG_DEV)" $(CC2538_BSL_FLAGS_OPTS) -b $(PROG_BAUD)
|
2020-03-06 20:50:51 +01:00
|
|
|
|
2020-03-15 09:51:14 +01:00
|
|
|
ifeq ($(RIOTTOOLS)/cc2538-bsl/cc2538-bsl.py,$(FLASHER))
|
|
|
|
FLASHDEPS += $(FLASHER)
|
|
|
|
endif
|