mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards/dfu-util: use FLASHFILE for boards using dfu-util
Update to use FLASHFILE as file to be flashed on the board.
This commit is contained in:
parent
a12f1a4026
commit
201c283a8f
@ -27,10 +27,10 @@ ifeq ($(PROGRAMMER),dfu-util)
|
||||
DEBUGGER = # no debugger
|
||||
RESET ?= # dfu-util has no support for resetting the device
|
||||
|
||||
HEXFILE = $(BINFILE)
|
||||
FFLAGS = -d 1eaf:0003 -a 2 -D "$(HEXFILE)"
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
FFLAGS = -d 1eaf:0003 -a 2 -D $(FLASHFILE)
|
||||
# for older bootloader versions use this:
|
||||
# FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)"
|
||||
# FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D $(FLASHFILE)
|
||||
else
|
||||
|
||||
# this board uses openocd by default
|
||||
|
@ -13,8 +13,8 @@ FLASHER = dfu-util
|
||||
DEBUGGER = # dfu-util has no debugger
|
||||
RESET ?= # dfu-util has no support for resetting the device
|
||||
|
||||
HEXFILE = $(BINFILE)
|
||||
FFLAGS = -d $(ID) -a 0 -s 0x08000000:leave -D "$(HEXFILE)"
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
FFLAGS = -d $(ID) -a 0 -s 0x08000000:leave -D $(FLASHFILE)
|
||||
|
||||
# setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
@ -11,8 +11,8 @@ FLASHER = dfu-util
|
||||
DEBUGGER = # spark core has no debugger
|
||||
RESET ?= # dfu-util has no support for resetting the device
|
||||
|
||||
HEXFILE = $(BINFILE)
|
||||
FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)"
|
||||
FLASHFILE ?= $(BINFILE)
|
||||
FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D $(FLASHFILE)
|
||||
|
||||
# Skip the space needed by the embedded bootloader
|
||||
export ROM_OFFSET ?= 0x5000
|
||||
|
Loading…
Reference in New Issue
Block a user