From e6051a53c8c51cf14ea9f4b93efb451ca1e7310e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de> Date: Mon, 26 Mar 2018 17:57:14 +0200 Subject: [PATCH] boards: use a '.bin' output file when its a binary --- boards/bluepill/Makefile.include | 1 + boards/f4vi1/Makefile.include | 1 + boards/nz32-sc151/Makefile.include | 1 + boards/spark-core/Makefile.include | 1 + 4 files changed, 4 insertions(+) diff --git a/boards/bluepill/Makefile.include b/boards/bluepill/Makefile.include index c0b88cab97..353208a59b 100644 --- a/boards/bluepill/Makefile.include +++ b/boards/bluepill/Makefile.include @@ -21,6 +21,7 @@ ifeq ($(PROGRAMMER),dfu-util) export RESET = # dfu-util has no support for resetting the device export OFLAGS = -O binary + HEXFILE = $(ELFFILE:.elf=.bin) export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)" else diff --git a/boards/f4vi1/Makefile.include b/boards/f4vi1/Makefile.include index dfaf742cac..3ccea4ee55 100644 --- a/boards/f4vi1/Makefile.include +++ b/boards/f4vi1/Makefile.include @@ -16,5 +16,6 @@ export DEBUGSERVER = st-util # define st-flash parameters export OFLAGS = -O binary +HEXFILE = $(ELFFILE:.elf=.bin) export FFLAGS = write $(HEXFILE) 0x8000000 export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE) diff --git a/boards/nz32-sc151/Makefile.include b/boards/nz32-sc151/Makefile.include index 0f50be0539..ed4ef10e87 100644 --- a/boards/nz32-sc151/Makefile.include +++ b/boards/nz32-sc151/Makefile.include @@ -14,6 +14,7 @@ export DEBUGGER = # dfu-util has no debugger export RESET = # dfu-util has no support for resetting the device export OFLAGS = -O binary +HEXFILE = $(ELFFILE:.elf=.bin) export FFLAGS = -d $(ID) -a 0 -s 0x08000000:leave -D "$(HEXFILE)" export TERMFLAGS = -p $(PORT) diff --git a/boards/spark-core/Makefile.include b/boards/spark-core/Makefile.include index 223683097a..c264a630af 100644 --- a/boards/spark-core/Makefile.include +++ b/boards/spark-core/Makefile.include @@ -12,6 +12,7 @@ export DEBUGGER = # spark core has no debugger export RESET = # dfu-util has no support for resetting the device export OFLAGS = -O binary +HEXFILE = $(ELFFILE:.elf=.bin) export FFLAGS = -d 1d50:607f -a 0 -s 0x08005000:leave -D "$(HEXFILE)" export INCLUDES += -I$(RIOTCPU)/$(CPU)/include/ -I$(RIOTBOARD)/$(BOARD)/include/ -- GitLab