aboutsummaryrefslogtreecommitdiff
path: root/stm
diff options
context:
space:
mode:
authorDamien2013-12-20 12:07:50 +0000
committerDamien2013-12-20 12:07:50 +0000
commitf0d09406381eea6d3fe1764eb63978d7a6974b21 (patch)
treeee7e822ef3455ea775b2aa8c3e34f4611308345c /stm
parent5e6ebd77d268ed064c96d0f4bdb6ba5d57228844 (diff)
Add tools/dfu.py, and use it in stm/Makefile.
Diffstat (limited to 'stm')
-rw-r--r--stm/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/stm/Makefile b/stm/Makefile
index 3d2dc4230..a5d0aad8a 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -3,6 +3,7 @@ FATFSSRC=fatfs
CC3KSRC=cc3k
PYSRC=../py
BUILD=build
+DFU=../tools/dfu.py
AS = arm-none-eabi-as
CC = arm-none-eabi-gcc
@@ -116,7 +117,7 @@ OBJ = $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o) $(PY_O) $(SRC_FATFS:.
all: $(BUILD) $(BUILD)/flash.dfu
$(BUILD)/flash.dfu: $(BUILD)/flash0.bin $(BUILD)/flash1.bin
- python2 ~/stm/dfu/dfu.py -b 0x08000000:$(BUILD)/flash0.bin -b 0x08020000:$(BUILD)/flash1.bin $@
+ python2 $(DFU) -b 0x08000000:$(BUILD)/flash0.bin -b 0x08020000:$(BUILD)/flash1.bin $@
$(BUILD)/flash0.bin: $(BUILD)/flash.elf
arm-none-eabi-objcopy -O binary -j .isr_vector $^ $@