File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ applications/
4
4
* .elf
5
5
* .bin
6
6
* .map
7
- * .hex
7
+ * .hex
8
+ * .dfu
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ hex: $(TARGETDIR)$(TARGET).hex
172
172
173
173
# Program the core using dfu-util. The core should have been placed
174
174
# in bootloader mode before invoking 'make program-dfu'
175
- program-dfu : $(TARGETDIR )$(TARGET ) .bin
175
+ program-dfu : $(TARGETDIR )$(TARGET ) .dfu
176
176
@echo Flashing using dfu:
177
177
$(DFU ) -d 1d50:607f -a 0 -s 0x08005000:leave -D $<
178
178
@@ -200,6 +200,11 @@ size: $(TARGETDIR)$(TARGET).elf
200
200
$(OBJCOPY ) -O binary $< $@
201
201
@echo
202
202
203
+ # Create a DFU file from bin file
204
+ % .dfu : % .bin
205
+ @cp $< $@
206
+ $(DFUSUFFIX ) -v 1d50 -p 607f -a $@
207
+
203
208
$(TARGETDIR )$(TARGET ) .elf : check_external_deps $(ALLOBJ )
204
209
@echo Building target: $@
205
210
@echo Invoking: ARM GCC C++ Linker
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ AR = $(GCC_PREFIX)ar
8
8
OBJCOPY = $(GCC_PREFIX ) objcopy
9
9
SIZE = $(GCC_PREFIX ) size
10
10
DFU = dfu-util
11
+ DFUSUFFIX = dfu-suffix
11
12
CURL = curl
12
13
13
14
RM = rm -f
You can’t perform that action at this time.
0 commit comments