1
0
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:
Gaëtan Harter 2018-12-19 19:00:04 +01:00
parent a12f1a4026
commit 201c283a8f
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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